如何让我的网站记住 user/password 次登录
How to make my website remember user/password logins
我 运行 我的网站在 DotNetNuke 版本 07.00.02 下,它不记得 user/password 客户端的登录。
有人可以给我提示吗?
您需要将 web.config
中的 PersistentCookieTimeout
设置为大于 0
的某个值,例如:
<configuration>
<appSettings>
<add key="PersistentCookieTimeout" value="2016000" />
</appSettings>
</configuration>
还要确保已启用 cookie,并且用户不使用 incognito
模式。
相关:PersistentCookieTimeout
and Why doesn't "Remember me" work like I expect?
我 运行 我的网站在 DotNetNuke 版本 07.00.02 下,它不记得 user/password 客户端的登录。
有人可以给我提示吗?
您需要将 web.config
中的 PersistentCookieTimeout
设置为大于 0
的某个值,例如:
<configuration>
<appSettings>
<add key="PersistentCookieTimeout" value="2016000" />
</appSettings>
</configuration>
还要确保已启用 cookie,并且用户不使用 incognito
模式。
相关:PersistentCookieTimeout
and Why doesn't "Remember me" work like I expect?