Journeyman
Journeyman

Reputation: 10271

asp.net web.config timeouts

Here is a snippet from my web.config file:

<system.web>
  <sessionState timeout="1440"></sessionState>
  <authentication mode="Forms">
    <forms loginUrl="~/Account/LogOn" timeout="1440" 
             cookieless="UseCookies" 
             />
  </authentication>

I am getting sessions expiring much sooner than 1 day (within an hour or so). Are there any other IIS or ASP.NET settings that could be affecting this? (the app is not setting any timeouts from code).

Upvotes: 2

Views: 3434

Answers (1)

Neil Knight
Neil Knight

Reputation: 48537

I would check the application pools recycle time. This is probably the cause as I think that it defaults to something like 20 minutes.

Upvotes: 1

Related Questions