Himberjack
Himberjack

Reputation: 5802

ASP.NET Session won't expire

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

Answers (1)

ScottE
ScottE

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

Related Questions