If your sessions are expiring too fast then you need to change the session expiry in your config file to a longer period of time.
Also you will most likely want to make sure that sliding expiry is enabled in the config aswell (unless you only plan on letting users log in for a set amount of time).
When the going get's tough, the tough outsource and take a vacation... lol I wish :(
ogsim07
Participant
967 Points
733 Posts
session auto expires after few minutes, how to keep it active?
Apr 19, 2012 07:20 PM|LINK
piram
Member
127 Points
151 Posts
Re: session auto expires after few minutes, how to keep it active?
Apr 19, 2012 08:09 PM|LINK
check here:
http://www.codeproject.com/Articles/10550/The-Defibrillator-Keeping-ASP-NET-Session-Alive-Ad
magicmike201...
Contributor
2021 Points
481 Posts
Re: session auto expires after few minutes, how to keep it active?
Apr 19, 2012 10:37 PM|LINK
If your sessions are expiring too fast then you need to change the session expiry in your config file to a longer period of time.
Also you will most likely want to make sure that sliding expiry is enabled in the config aswell (unless you only plan on letting users log in for a set amount of time).
vijay_myl
Contributor
5070 Points
1068 Posts
Re: session auto expires after few minutes, how to keep it active?
Apr 20, 2012 07:47 AM|LINK
hi..
You have to set session time out in web.confi file..By default the time will be set 20 minutes ..For your needs change the timeout..
<sessionState cookieless="UseCookies" mode="InProc" timeout="20">
</sessionState>
My .NET blog
Submit Article