django 1.8 SESSION_EXPIRE_AT_BROWSER_CLOSE不工作 [英] django 1.8 SESSION_EXPIRE_AT_BROWSER_CLOSE not working
问题描述
Django 1.7在Chrome中的SESSION_EXPIRE_AT_BROWSER_CLOSE = true有问题,浏览器关闭后不会过期。我搬到了Django 1.8,我想知道这个问题已经解决了。
Django 1.7 had a problem with SESSION_EXPIRE_AT_BROWSER_CLOSE = true in Chrome, not expiring when the browser closes. I moved to Django 1.8, I was wondering this problem has been resolved.
推荐答案
#19962 :文档已更新。基本上,这不是Django中的错误,而是Chrome中的一个特殊设置,允许用户在关闭并重新打开浏览器后继续浏览会话。
#19962: The documentation has been updated. Basically, this is not a bug in Django, but rather a special settings in Chrome which allows user to continue its browser session even after closing and re-opening the browser.
请参阅注意更新的文档。
某些浏览器(例如Chrome)提供允许用户在关闭和重新启动后继续浏览会话的设置打开浏览器在某些情况下,这可能会干扰
SESSION_EXPIRE_AT_BROWSER_CLOSE
设置,并阻止会话在浏览器关闭时过期。在测试启用了SESSION_EXPIRE_AT_BROWSER_CLOSE
设置的Django应用程序时,请注意此事。
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.
这篇关于django 1.8 SESSION_EXPIRE_AT_BROWSER_CLOSE不工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!