How do you change session timeout in IIS 8.5?

Roto picture Roto · Aug 25, 2016 · Viewed 81.7k times · Source

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.

Answer

Andrew Morton picture Andrew Morton · Aug 25, 2016

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

Where to find the Session State settings

Where the timeout setting is

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.