首页 asp.Net asp.net-mvc – ASP.NET MVC会话超时,绝对还是滑动?

asp.net-mvc – ASP.NET MVC会话超时,绝对还是滑动?

参考: http://msdn.microsoft.com/en-us/library/vstudio/ms178581(v=vs.100).aspx?cs-save-lang=1cs-lang=vb#code-snippet-1 A session is considered active as long as requests continue to be made with the sam

参考:
http://msdn.microsoft.com/en-us/library/vstudio/ms178581(v=vs.100).aspx?cs-save-lang=1&cs-lang=vb#code-snippet-1

A session is considered active as long as requests continue to be made
with the same SessionID value. If the time between requests for a
particular session exceeds the specified time-out value in minutes,
the session is considered expired. Requests made with an expired
SessionID value result in a new session.

我想确保我正确理解该段落.从那里我读到ASP.NET Sessions在滑动规则上工作,而不是绝对规则.也就是说,会话将在最后一次会话请求后20分钟到期(假设此处为默认值为20分钟),不管请求/会话活动如何,不是绝对在会话开始后20分钟?我做对了吗?

解决方法

是的,你明白了.

正如文档所说,每个会话请求将重置20分钟的倒计时.

本文来自网络,不代表青岛站长网立场。转载请注明出处: https://www.0532zz.com/html/kaifa/asp-net/20210330/17841.html
上一篇
下一篇

作者: dawei

【声明】:青岛站长网内容转载自互联网,其相关言论仅代表作者个人观点绝非权威,不代表本站立场。如您发现内容存在版权问题,请提交相关链接至邮箱:bqsm@foxmail.com,我们将及时予以处理。

为您推荐

返回顶部