Skip to content

Commit fe5d9fe

Browse files
committed
Fixed django#19962 - Added a note about SESSION_EXPIRE_AT_BROWSER_CLOSE and browsers that persist sessions.
Thanks David Sanders.
1 parent e044931 commit fe5d9fe

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

docs/topics/http/sessions.txt

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -474,6 +474,16 @@ This setting is a global default and can be overwritten at a per-session level
474474
by explicitly calling the :meth:`~backends.base.SessionBase.set_expiry` method
475475
of ``request.session`` as described above in `using sessions in views`_.
476476

477+
.. note::
478+
479+
Some browsers (Chrome, for example) provide settings that allow users to
480+
continue browsing sessions after closing and re-opening the browser. In
481+
some cases, this can interfere with the
482+
:setting:`SESSION_EXPIRE_AT_BROWSER_CLOSE` setting and prevent sessions
483+
from expiring on browser close. Please be aware of this while testing
484+
Django applications which have the
485+
:setting:`SESSION_EXPIRE_AT_BROWSER_CLOSE` setting enabled.
486+
477487
Clearing the session store
478488
==========================
479489

0 commit comments

Comments
 (0)