我在项目上使用redis会话,由于某种原因用户无法注销。 我的配置如下:
stoi
我将<sessionState timeout="3" mode="Custom" customProvider="MySession">
<authentication mode="Forms">
<forms loginUrl="~/Account/Login" timeout="7" slidingExpiration="true" />
</authentication>
设置为3分钟(180秒)和SessionTimeout
。实际上我有一个FormAuthentication timeout=7
,但我取消了它,因为我想知道问题来自哪里。所以我正在使用redis桌面管理器观看redis会话,在redis杀死3分钟会话后,我等待表单身份验证过期(7分钟)之后我点击了页面上的按钮,我以为我应该退出但是它不是因为会话已经由redis再次创建,我已经检查SessionExpireAttribute
我已经看过3600秒(60分钟)。我不明白发生了什么!!。