简体   繁体   中英

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).

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM