gpt4 book ai didi

session - 如何增加 Plone 登录 session ?

转载 作者:行者123 更新时间:2023-12-02 01:34:18 25 4
gpt4 key购买 nike

我不希望我的用户必须每天重新登录,例如,我想将登录 session 增加到一周。我该如何存档?

我尝试在 ZMI -> acl-users -> session -> properties 中增加 cookie 超时和 cookie 生命周期,但它不起作用。

最佳答案

你在正确的道路上:-)

Cookie validity timeout 设置为 0,将 Cookie lifetime 设置为 7。

确保您使用的是 plone 用户,而不是来自 zope-root(继承用户)的用户。

您可以通过检查浏览器资源来检查设置是否有效,这是 chrome 中的示例:

今天是 8 月 20 日,Cookie __ac 将在 7 天后过期。 enter image description here

关于session - 如何增加 Plone 登录 session ?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32100477/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com