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 theSESSION_EXPIRE_AT_BROWSER_CLOSE
setting enabled.
关于python - django 1.8 SESSION_EXPIRE_AT_BROWSER_CLOSE 不工作,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30093624/