I was trying to configure the session timeout for my Web Application and encountered some difficulties with IIS7.
We are using "Use URI" mode for our Session State (and changing that is not an option).
When run locally the configuration in the web.config seems to work fine:
<sessionState cookieless="UseUri" timeout="120"/>
But when the application is deployed in the IIS the session timeout must be configured again in the IIS (or in the IIS exclusively?).
In the Session State configuration in the IIS menu when I select Mode: "Use URI" the Time-out field gets disabled, so I'm not able to configure the Session timeout and I'm stuck with the default value.
So here comes my question:
Why can't I configure the session timeout? Even if I don't use cookies, shouldn't I be able to tell the server how long the session id in the URL is valid?
Is there any way to configure the session timeout in IIS when using "Use URI" mode?
Go to IIS, right click on Application pools > Properties > 2nd Tab Performance > increase time to 120 (Default 20min) from Shutdown worker processes after being Idle for (time in minutes)
Regards,
Sachin.
Marked as answer by Ming Xu - MSFT on Feb 28, 2012 12:03 PM
lars_k
0 Points
1 Post
Setting Session Timeout in IIS7 when using "Use URI"
Feb 08, 2012 10:27 AM|LINK
Hello,
I was trying to configure the session timeout for my Web Application and encountered some difficulties with IIS7.
We are using "Use URI" mode for our Session State (and changing that is not an option).
When run locally the configuration in the web.config seems to work fine:
But when the application is deployed in the IIS the session timeout must be configured again in the IIS (or in the IIS exclusively?).
In the Session State configuration in the IIS menu when I select Mode: "Use URI" the Time-out field gets disabled, so I'm not able to configure the Session timeout and I'm stuck with the default value.
So here comes my question:
Why can't I configure the session timeout? Even if I don't use cookies, shouldn't I be able to tell the server how long the session id in the URL is valid?
Is there any way to configure the session timeout in IIS when using "Use URI" mode?
Greetings
Lars
sachin_07
Member
197 Points
114 Posts
Re: Setting Session Timeout in IIS7 when using "Use URI"
Feb 10, 2012 03:38 AM|LINK
Hello,
Go to IIS, right click on Application pools > Properties > 2nd Tab Performance > increase time to 120 (Default 20min) from Shutdown worker processes after being Idle for (time in minutes)
Regards,
Sachin.