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

查看:174
本文介绍了IIS会话超时VS 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会话超时是CLASIC 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会话超时VS ASP.NET会话超时的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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