【发布时间】:2011-05-13 12:34:17
【问题描述】:
我有管理页面,我在那里编辑我的网站,它使用 sql。 3-4 分钟后退出管理页面并再次要求我输入用户名和密码。如何更改超时时间?
我在 web.config 上试过这个:
<authentication mode="Forms">
<forms loginUrl="~/Account/Login.aspx" timeout="60"/>
</authentication>
还有这个:
<authentication mode="Forms">
<forms loginUrl="~/Account/Login.aspx" timeout="7200"/>
</authentication>
还有……这个:
<httpRuntime requestValidationMode="2.0" useFullyQualifiedRedirectUrl="true"
executionTimeout="72000"
appRequestQueueLimit="90000"
shutdownTimeout="90000" />
所有结果都是一样的...... 3-4 分钟后(即使我点击那里,不仅是在空闲时) - 系统正在注销。
【问题讨论】:
-
检查您的网站是否发生任何异常,这会破坏会话。
-
你能更详细地解释一下你的意思吗?
标签: c# asp.net web-config timeout