Roto
Roto

Reputation: 587

How do you change session timeout in IIS 8.5?

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.

Upvotes: 21

Views: 138259

Answers (2)

Tommaso
Tommaso

Reputation: 351

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

enter image description here

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

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

enter image description here

Upvotes: 17

Andrew Morton
Andrew Morton

Reputation: 25013

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.

Upvotes: 30

Related Questions