asp.net - 使用 ASPXAUTH cookie 和 asp.net_sessionID cookie 控制用户 session

标签 asp.net sitecore sitecore6

如果我将 ASPXAUTH cookie 设置为 session cookie,超时 10 分钟,但没有 asp.net_sessionID cookie,用户是否会超时 a) 登录后十分钟 b) 距上次向服务器发出请求后十分钟

如果我还发送 asp.net_sessionID cookie,此行为会改变吗?

这适用于基于 Sitecore 后端构建的 JSON 服务,为 native iPad 应用提供内容。

最佳答案

aspxauth cookie 超时是从收到最后一个请求的时间开始计算的。

超时

Specifies the time, in integer minutes, after which the cookie expires. If the SlidingExpiration attribute is true, the timeout attribute is a sliding value, expiring at the specified number of minutes after the time that the last request was received.

请参阅 msdn link了解详情

ASP.NET_SessionId cookie 用于跟踪 session 状态,它与 ASPXAUTH cookie 无关,后者主要用于身份验证目的。

关于asp.net - 使用 ASPXAUTH cookie 和 asp.net_sessionID cookie 控制用户 session ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15428362/

相关文章:

c# - 使用批处理文件或 .NET 代码更改 Web.config 中的值

asp.net - Sitecore Droplink 字段中的最大结果数?

Sitecore 8 在内部链接中获取项目的简单方法?

c# - 如何有效测试 SiteCore LinkField

permissions - Sitecore Active Directory 权限和角色中的角色问题

Sitecore - 营销人员网络表单 - 使用 ReadQueryString 选项

asp.net - 使用带有 Selenium 的母版页测试 ASP.NET 站点

asp.net - 页面刷新导致 ASP.NET 应用程序中的重复 POST

asp.net - 如何更改 ASP.NET ListView 中特定 <li> 的类?

Sitecore 页面编辑器 发布与内容相关的项目