Session clears before timeout in asp.net 2.0
-
i m using InProc mode for session in web config,I have set session Timeout="60" for both cookies and session.But all session expires anytime (say after 5 min or 10 min,sometimes 30 min) even when i browsing pages.My application is on single server and i am Not doing any updation for application. As the session Timout not occurs,so it doesnot redirect me to login page. Can anyone help me regards this problem??? Thanks in advance jagmit
-
i m using InProc mode for session in web config,I have set session Timeout="60" for both cookies and session.But all session expires anytime (say after 5 min or 10 min,sometimes 30 min) even when i browsing pages.My application is on single server and i am Not doing any updation for application. As the session Timout not occurs,so it doesnot redirect me to login page. Can anyone help me regards this problem??? Thanks in advance jagmit
Sessions can timeout for several reasons. Maybe the ASP.NET process is recycling. Or, you are running low on memory in which case sessions that have been inactive for a long time would be deleted. Using StateServer mode for the session will allow your session to be maintained when the ASP.NET process recycles.