python - django 1.8 SESSION_EXPIRE_AT_BROWSER_CLOSE 不工作

标签 python django session

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/

相关文章:

session - Memcache 打开后 Magento session 消失

python - PyYAML 使用键的前导问号转储字典并在下一行打印值

python - 将散点数据转换为误差条等于标准差的分箱数据

python - 为什么 django-lint 告诉我 `auto_now_add` 已弃用?

python manage.py runserver、shell、dbshel​​l 在 git-bash 上卡住

java - 用于 tomcat 的分布式 HTTP session 状态服务器

session - Magento 2目录 ''不在存储根路径下

Python Selenium在ubuntu中设置firefox配置文件的路径

python - 模块名称中的 async 关键字阻止导入

python - Django : Set url dynamically with <a> element in template