1
0
mirror of https://github.com/django/django.git synced 2025-04-01 03:56:42 +00:00

[1.9.x] Fixed -- Documented that SESSION_SAVE_EVERY_REQUEST doesn't create empty sessions.

Backport of abf5ccc29c45d53ec17541179bb5f0a75b28915d from master
This commit is contained in:
Tim Graham 2015-10-29 16:56:16 -04:00
parent 6eaf43a244
commit adc9fa8324
4 changed files with 8 additions and 4 deletions

@ -3095,7 +3095,8 @@ Default: ``False``
Whether to save the session data on every request. If this is ``False`` Whether to save the session data on every request. If this is ``False``
(default), then the session data will only be saved if it has been modified -- (default), then the session data will only be saved if it has been modified --
that is, if any of its dictionary values have been assigned or deleted. that is, if any of its dictionary values have been assigned or deleted. Empty
sessions won't be created, even if this setting is active.
.. setting:: SESSION_SERIALIZER .. setting:: SESSION_SERIALIZER

@ -21,7 +21,8 @@ by sending repeated requests, potentially filling up the session store or
causing other users' session records to be evicted. causing other users' session records to be evicted.
The :class:`~django.contrib.sessions.middleware.SessionMiddleware` has been The :class:`~django.contrib.sessions.middleware.SessionMiddleware` has been
modified to no longer create empty session records. modified to no longer create empty session records, including when
:setting:`SESSION_SAVE_EVERY_REQUEST` is active.
Additionally, the ``contrib.sessions.backends.base.SessionBase.flush()`` and Additionally, the ``contrib.sessions.backends.base.SessionBase.flush()`` and
``cache_db.SessionStore.flush()`` methods have been modified to avoid creating ``cache_db.SessionStore.flush()`` methods have been modified to avoid creating

@ -17,7 +17,8 @@ by sending repeated requests, potentially filling up the session store or
causing other users' session records to be evicted. causing other users' session records to be evicted.
The :class:`~django.contrib.sessions.middleware.SessionMiddleware` has been The :class:`~django.contrib.sessions.middleware.SessionMiddleware` has been
modified to no longer create empty session records. modified to no longer create empty session records, including when
:setting:`SESSION_SAVE_EVERY_REQUEST` is active.
Additionally, the ``contrib.sessions.backends.base.SessionBase.flush()`` and Additionally, the ``contrib.sessions.backends.base.SessionBase.flush()`` and
``cache_db.SessionStore.flush()`` methods have been modified to avoid creating ``cache_db.SessionStore.flush()`` methods have been modified to avoid creating

@ -17,7 +17,8 @@ by sending repeated requests, potentially filling up the session store or
causing other users' session records to be evicted. causing other users' session records to be evicted.
The :class:`~django.contrib.sessions.middleware.SessionMiddleware` has been The :class:`~django.contrib.sessions.middleware.SessionMiddleware` has been
modified to no longer create empty session records. modified to no longer create empty session records, including when
:setting:`SESSION_SAVE_EVERY_REQUEST` is active.
Bugfixes Bugfixes
======== ========