If you are using ASP .NET with forms authentication and set the forms authentication to 1440 minutes, this authentication will by default expire after 20 minutes, when the server gets no request during these 20 minutes. This is controlled by the application pool setting [Idle Time-out (minutes)]:

 

image

 

Settings this value to 1440 and setting the forms authentication timeout in the web.config to 1440, solved my problem.

<authentication mode="Forms">
    <forms loginUrl="~/Account/Login.aspx" timeout="1440" protection="All" defaultUrl="Default.aspx"/>
</authentication>

Found my solution in one of the comments on:

http://www.codeproject.com/Questions/163203/Forms-Authentication-and-or-Session-timeout

 

Notes

  • Changes to application pool settings are stored in the applicationhost.config file, stored at C:\Windows\System32\inetsrv\config\applicationHost.config

One Comment

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.