IIS 会话超时与 ASP.NET 会话超时 [英] IIS Session Timeout vs ASP.NET Session Timeout

查看:40
本文介绍了IIS 会话超时与 ASP.NET 会话超时的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在 IIS 6(和其他版本也是如此)中,属性 -> 主目录选项卡 -> 配置按钮 -> 选项选项卡中有一个会话超时设置.看起来像这样:

In IIS 6 (and other versions too afaik), there is a Session Timeout setting in Properties -> Home Directory Tab -> Configuration button -> Options tab. Looks like this:

在 ASP.NET web.config 中有一个 SessionState 设置,如下所示:

And in the ASP.NET web.config there is a SessionState setting, looks like this:

<system.web>
    <sessionState timeout="120" />
    <!-- etc .. -->
</system.web>

他们是否有任何联系?他们设置的是相同的东西,还是不同的东西?

Are they, by any chance, related? Do they set the same thing, or different things?

推荐答案

它们不一样.IIS 会话超时适用于经典的 ASP 页.web.config 一个用于 asp.net.

They are not the same. The IIS session timeout is for clasic ASP pages. The web.config one is for asp.net.

这篇关于IIS 会话超时与 ASP.NET 会话超时的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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