【发布时间】:2015-07-09 19:58:42
【问题描述】:
我有一个运行良好的应用程序,但是,当我在页面上停留很短时间没有交互时,身份验证失败并返回登录页面。我正在尝试在我的网络配置中将其设置为 20 分钟或更长时间。
<authentication mode="Forms">
<forms loginUrl="~/Login.aspx" timeout="20" />
</authentication>
<sessionState timeout="20"></sessionState>
...
<customErrors mode="Off" />
<machineKey decryptionKey="AutoGenerate,IsolateApps" validationKey="AutoGenerate,IsolateApps" />
关于应用设置
<add key="aspnet:MaxHttpCollectionKeys" value="2000" />
我在我的 ISS 中看到了所有内容,尝试按照我在此处和在 microsoft 社区中找到的一些步骤进行操作,但会话继续过期的速度比我想要的要快。
【问题讨论】:
标签: c# asp.net webforms iis-7 web-config