gpt4 book ai didi

python - django 1.8 SESSION_EXPIRE_AT_BROWSER_CLOSE 不工作

转载 作者:太空狗 更新时间:2023-10-30 00:49:23 39 4
gpt4 key购买 nike

Django 1.7 在 Chrome 中存在 SESSION_EXPIRE_AT_BROWSER_CLOSE = true 问题,浏览器关闭时不会过期。我搬到了 Django 1.8,我想知道这个问题已经解决了。

最佳答案

#19962 : 文档已更新。基本上,这不是 Django 中的错误,而是 Chrome 中的一个特殊设置,允许用户在关闭并重新打开浏览器后继续其浏览器 session 。

参见 note在更新的文档中。

Some browsers (Chrome, for example) provide settings that allow users to continue browsing sessions after closing and re-opening the browser. In some cases, this can interfere with the SESSION_EXPIRE_AT_BROWSER_CLOSE setting and prevent sessions from expiring on browser close. Please be aware of this while testing Django applications which have the SESSION_EXPIRE_AT_BROWSER_CLOSE setting enabled.

关于python - django 1.8 SESSION_EXPIRE_AT_BROWSER_CLOSE 不工作,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30093624/

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