IIS中的会话超时和空闲超时有什么不同? [英] What is the different between Session Timeout and Idle Timeout in IIS?

查看:946
本文介绍了IIS中的会话超时和空闲超时有什么不同?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在IIS中,选择默认网站>属性>主目录>应用程序设置>配置>选项,默认会话超时为20分钟。此外,选择应用程序池> DefaultAppPool>属性,在性能选项卡中,有空闲超时,默认为20分钟。这两次超时有什么不同?

In IIS, Select Default Web Site > Properties > Home Directory > Application Settings > Configuration > Options, the default Session timeout is 20 minutes. Also, Select Application Pools > DefaultAppPool > Properties, in the Performance tab, there is Idle timeout which is default to 20 minutes too. What is the different between those two timeouts?

推荐答案

空闲超时确定是否以及如果是这样,在多少分钟的空闲时间之后回收AppPool。回收AppPool可以释放资源,但也意味着当再次请求站点时,需要重新生成在该AppPool下运行的站点的所有缓存数据(ASP.NET应用程序的编译版本等)(这可能需要几分钟)。

The idle timeout determines if, and if so after how many minutes of idle time an AppPool is recycled. Recycling the AppPool frees resources but also means that all cached data (compiled version of ASP.NET applications etc.) of sites that run under that AppPool need to be regenerated when the site is requested again (this can take up to several minutes).

会话超时设置确定会话有效的时间。 请注意,会话超时仅适用于经典ASP (不是ASP .NET )。

The session timeout setting determines how long a session is valid. Please note that session timeout is only applied to classic ASP (not ASP .NET).

会话超时设置似乎适用于ASP。 NET应用程序也是如此。您可以找到详细的解释这里

The session timeout setting seems to apply to ASP.NET applications as well. You can find a detailed desciption here.

澄清一下:有两个IIS中的会话超时设置。一个设置应用于Classic ASP应用程序,另一个设置应用于ASP.NET应用程序。如果经典ASP是,则只能使用ASP面板设置。安装(默认情况下,IIS> = 7没有经典ASP)。

To clarify this: There are two session timeout settings in IIS. One setting is applied to Classic ASP applications and the other for ASP.NET apps. The former can only be set using the ASP panel if Classic ASP is installed (IIS >= 7 comes without Classic ASP by default).

这篇关于IIS中的会话超时和空闲超时有什么不同?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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