Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在我的网站上使用slidingExpiration 会话。而且我还添加了 ajax 调用来检查每 15 分钟会话到期以在登录页面上重定向用户。调用此 ajax 时是否可以不扩展会话?
找到答案。为避免会话过期延长,请通过 [SessionState(SessionStateBehavior.Disabled)] 属性标记控制器