Reputation: 5802
I have the following in the web.config
<sessionState cookieName="ASP.NET_SessionId" cookieless="false" mode="InProc" timeout="1" regenerateExpiredSessionId="true"/>
however, after 1 min, the session won't expire. what can cause this?
thanks
Upvotes: 4
Views: 545
Reputation: 21630
I'm assuming you're using forms authentication. Sliding expiration is true by default, so if you look at the slidingExpiration attribute of your web.config forms element you may get the behaviour you're looking for. If false, it will expire after the specified amount of time since it was set.
See:
http://msdn.microsoft.com/en-us/library/1d3t3c61.aspx
Upvotes: 2