我在asp.net.i中使用表单身份验证已将身份验证Cookie过期设置为60分钟,会话时间超过60分钟在web.config中超时在web.config中为60分钟,并在IIS中的空闲时间来60分钟身份验证在asp.net中的Cookie
<authentication mode="Forms">
<forms loginUrl="~/Account/Login.aspx" timeout="60" defaultUrl="~/Landing.aspx" slidingExpiration="true"/>
</authentication>
<system.web>
<sessionState timeout="60" mode="InProc"/>
FormsAuthenticationTicket ticket = new FormsAuthenticationTicket(
2, // Version number
txtUserName.Text.Trim(), // Username
DateTime.Now, // Issue date
DateTime.Now.AddMinutes(60), // Expiration date
false, // Persistent?
userData // User data
);
,因为我使用窗体身份验证,如果用户空闲60分钟用户应重定向60后到登录页面mins.but我需要知道什么如果用户没有闲置60分钟,会发生。验证cookie是否会过期?尽管用户仍然通过身份验证?
编辑
我错过了一两件事,我已经在IIS中设置应用程序池标识为网络服务