【发布时间】:2018-12-07 09:25:32
【问题描述】:
在我的 Web 应用程序中,我在 system.web 标记内的 web.config 文件中将会话超时设置为 60 分钟,但是它不起作用。 30 分钟后,其会话过期。请查看我下面的代码并帮助我。
<system.web>
<customErrors mode="Off">
</customErrors>
<authentication mode="None" />
<compilation targetFramework="4.5.2" />
<httpRuntime targetFramework="4.5" />
<caching>
<outputCacheSettings>
<outputCacheProfiles>
<add name="CacheOneDay" duration="86400" varyByParam="IFAID" />
</outputCacheProfiles>
</outputCacheSettings>
</caching>
<sessionState timeout = "60" mode = "InProc" />
</system.web>
【问题讨论】:
-
检查您的 global.asax 文件。如果那里设置了超时,它将覆盖 web.config 设置
标签: c# asp.net model-view-controller session-timeout