Last post Oct 25, 2015 11:30 PM by Masterpiece88
Oct 24, 2015 12:03 AM|Nipesh|LINK
Hi,session still expire after setting timeout..localsite working fine but server site session expire every 10 min or 20 min.
<sessionState mode="InProc" regenerateExpiredSessionId="false" timeout="110" sqlCommandTimeout ="600" cookieName="ASP.NET_SessionId" stateNetworkTimeout ="20" />
<forms cookieless="UseCookies" defaultUrl="Default.aspx" loginUrl="Login.aspx" protection="All" timeout="110" >
Oct 24, 2015 06:30 AM|hans_v|LINK
When using SessionStart mode InProc, Sessions are stored in Memory. But when the Application Pool Recycles, all sessions are losed. So when you want to keep Sessions alive, you need to use another SessionState mode.
Also be aware that Session and Forms Authentication has nothing to do with each other. I see that you set the TimeOut of both to the same value. But you must realize that the Forms Authentiction TimeOut doesn't work as you might expect. This is because the
Authentication Cookie is only reset when more than half of the Timeout Interval has elapsed. So when you set the TimeOut to 110, the Cookie expires anywhere between 55 - 110 minutes after the last request.
Session will expire (when you're using another SessionState Mode) 110 minutes after the last request.
Oct 24, 2015 09:14 AM|francissvk|LINK
If you are using "Shared Hosting" then, you may face these kind of problems. Check with your Hosting provider. Also, if you are using "Inproc" mode of session then you need to change your hosting plan to "Dedicated Server". I have also faced the same problem
in shared hosting.
Oct 25, 2015 11:30 PM|Masterpiece88|LINK