加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 编程开发 > asp.Net > 正文

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

发布时间:2020-12-15 19:49:03 所属栏目:asp.Net 来源:网络整理
导读:参考: 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 same SessionID value. If the time betwee
参考: 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分钟的倒计时.

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读