Last post Mar 07, 2011 05:54 AM by sirdneo
Mar 03, 2011 07:52 PM|ravininave|LINK
I'm facing a great problem in session. My session expires after every 4-5 minutes. Firstly I checked my web hosting settings. I increased session timeout to 50000. In my web.config I wrote :
<sessionState mode="InProc" cookieless="UseCookies" timeout="500000"/>
Also Locally it expires withing 5 minutes. Can anyone gives me a strong solution for this.
Secondly can I also increase idle timeout.
Mar 03, 2011 11:38 PM|stanly|LINK
Hope this helps...
Mar 07, 2011 05:54 AM|sirdneo|LINK
There are different options to set session time out in your application. For Details see:-
How to set Session Timeout in ASP.Net
If you set timeout as mentioned in above article and still you are loosing session before time or loosing session randomly then it might be because of server restarts. For details see:-
Why .Net sessions are terminated/loss unexpectedly