Click here to Skip to main content
15,890,897 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hai,

I have written web config in runtime.After that,session didnt work for me.Can anyone pls tell me any solution for this problem.

thanks in Advance
Posted
Comments
srinivas vadepally 20-Jan-12 0:50am    
manjula, your question is not enough clear to give a solution.
Can you reply with an appropriate issue?

1 solution

I guess the moment you make changes to the web.config of a web app which is already running, it will restart the whole AppDomain of the application. Hence if your session mode is "inProc", then you will loose the session details when the Appdomain is restarted

I suggest you configure your session mode to any of the "out of process" modes which can be either StateServer or SQLServer.

Read up on this here http://msdn.microsoft.com/en-us/library/ms972429.aspx[^]
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900