【发布时间】:2011-01-11 19:11:45
【问题描述】:
使用此 web.config 元素设置会话状态超时
<sessionState mode="InProc" cookieless="false" timeout="120" />
使用此 web.config 元素配置表单身份验证
<system.web>
<authentication mode="Forms">
<forms loginUrl="Login.aspx"
protection="All"
timeout="30"
name=".ASPXAUTH"
path="/"
requireSSL="false"
slidingExpiration="true"
defaultUrl="default.aspx"
cookieless="UseDeviceProfile"
enableCrossAppRedirects="false" />
</authentication>
</system.web>
每个元素中指定的超时之间有什么区别?如果两者不同,它会如何工作?
【问题讨论】:
标签: asp.net authentication forms-authentication