I am trying to set the timeout of my site to 20 minutes, however I cannot seem to get it to work. Some pages will timeout after about 5 minutes, others will do so after 60 minutes.
Here is what I have done so far:
1. I have set the timeout value in the web.config file:
2. I went to IIS, selected Virtual Directory and clicked on the Configuration button. In the Options tab, I set the session timeout value to 20 minutes and left the ASP Script timeout at 90 seconds.
3. Still in IIS, I selected the Http Headers tab and have selected the "Expire after:" radio button and I have set that to 1 day (Should I set it to longer).
4. Next I went to the ASP.NET tab, and clicked the Edit Configuration button. I selected the Authentication tab, and confirmed that my cookie timeout is set to 20. The tickbox Enable Sliding Expiration is also ticked.
5. I then selected the State Management tab. Here I see that the Session State mode is: InProc, the Cookieless mode is: UseCookies and Session timeout is set to: 20 minutes.
Can anyone suggest what I have done wrong? or why I cannot control the session timeout.
Mike55.
Here is what I have done so far:
1. I have set the timeout value in the web.config file:
Code:
<authentication mode="Forms">
<forms name="www.abc.eu" loginUrl="Index.aspx" timeout="20" />
</authentication>
2. I went to IIS, selected Virtual Directory and clicked on the Configuration button. In the Options tab, I set the session timeout value to 20 minutes and left the ASP Script timeout at 90 seconds.
3. Still in IIS, I selected the Http Headers tab and have selected the "Expire after:" radio button and I have set that to 1 day (Should I set it to longer).
4. Next I went to the ASP.NET tab, and clicked the Edit Configuration button. I selected the Authentication tab, and confirmed that my cookie timeout is set to 20. The tickbox Enable Sliding Expiration is also ticked.
5. I then selected the State Management tab. Here I see that the Session State mode is: InProc, the Cookieless mode is: UseCookies and Session timeout is set to: 20 minutes.
Can anyone suggest what I have done wrong? or why I cannot control the session timeout.
Mike55.