How do you change session timeout in IIS 8.5?

2019-02-07 04:28发布

问题:

I'm in IIS 8.5 on Windows Server 2012 R2 and I want to see what the session timeout is.

Under "Feature view", I see a session category so I open that up. Session state is set to in-process. Further down the window I see options to set timeouts but they are for cookies. I looked in the application pool and I saw an idle timeout set to 20 minutes: is this the session timeout? I'm used to IIS 7 where you click on the "ASP" feature and set it in there.

回答1:

Yes, that is the session timeout setting in the "Session State" section.

You can also control it programatically in the "web.config" file. Please see How to set session timeout in web.config. IIS Manager will change that for you with your current method.



回答2:

In IIS, open a list of your sites and select one. Then select "ASP" in the site properties under the "IIS" entry

Now just change the voice about "TimeOut", the time you prefer and you're done!

Finally check your Application Pool's idle timeout that application pool idle timeout too matches your session timeout.



标签: iis-8