ASP.NET Session Will Not Expire

I have the following in web.config

<sessionState cookieName="ASP.NET_SessionId" cookieless="false" mode="InProc" timeout="1" regenerateExpiredSessionId="true"/> 

however, after 1 minute, the session does not expire. what can cause this?

thanks

+4
source share
1 answer

I assume that you are using forms-based authentication. By default, the default expiration is true, so if you look at the slideExpiration attribute of your web.config form element, you can get the behavior you are looking for. If false, it will expire after the specified amount of time since it was set.

Cm:

http://msdn.microsoft.com/en-us/library/1d3t3c61.aspx

+2
source

All Articles