如何更改IIS 8.5中的会话超时? [英] How do you change session timeout in IIS 8.5?

查看:309
本文介绍了如何更改IIS 8.5中的会话超时?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Windows Server 2012 R2上的IIS 8.5中,我想查看会话超时是什么.

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

在功能视图"下,我看到一个会话类别,因此我将其打开.会话状态设置为进行中.在窗口的更下方,我看到用于设置超时的选项,但它们用于cookie.我查看了应用程序池,发现空闲超时设置为20分钟:这是会话超时吗?我已经习惯了IIS 7,您可以在其中单击"ASP"功能并在其中进行设置.

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.

推荐答案

是的,即会话状态"部分中的会话超时设置.

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

您也可以在"web.config"文件中以编程方式对其进行控制.请参阅如何在web.config中设置会话超时. IIS管理器将使用您当前的方法为您进行更改.

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.

这篇关于如何更改IIS 8.5中的会话超时?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆