2 January, 2013
0 Comments
1 category
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)]:
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
Tags: ASP .NET
Category: Uncategorized
What if Im using mvc asp? Should I still use Forms or Windows?
Gettin’ errors with forms