我试图了解这是否有意义:
1. User logs in, checks "remember me" checkbox.
2. User logs out.
3. User comes back and is automatically logged in.
基本上,这正是您所期望的。这意味着它正在工作。这里有点奇怪:
1. User logs in, checks "remember me" checkbox. (Or logs in using remember me.)
2. User is inactive for over 20 minutes, so the session times out.
3. User clicks a link and is sent to the sign in page.
4. User closes browser, then opens again. They are taken to the sign in page.
当该用户的会话由于不活动而到期时,似乎该用户的“记住我”已关闭。我试图在文档中找到有关此的内容,但无济于事。如果这是预期的行为,那很酷,但我想确认一下。
我们首先使用 Sitecore.Security.Authentication 管理器设置 cookie。