From c20d33201c6eccc7f21f72bb61b1737be59b16d4 Mon Sep 17 00:00:00 2001 From: Jannis Leidel Date: Thu, 17 Nov 2011 21:16:42 +0000 Subject: [PATCH] Fixed #17223 -- Correctly reference the signed cookies session backend. Thanks, Bryan Veloso. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17101 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- django/contrib/sessions/backends/signed_cookies.py | 4 ++-- docs/topics/http/sessions.txt | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/django/contrib/sessions/backends/signed_cookies.py b/django/contrib/sessions/backends/signed_cookies.py index 966cbf6e8f..178cc32c93 100644 --- a/django/contrib/sessions/backends/signed_cookies.py +++ b/django/contrib/sessions/backends/signed_cookies.py @@ -33,7 +33,7 @@ class SessionStore(SessionBase): return signing.loads(self._session_key, serializer=PickleSerializer, max_age=settings.SESSION_COOKIE_AGE, - salt='django.contrib.sessions.backends.cookies') + salt='django.contrib.sessions.backends.signed_cookies') except (signing.BadSignature, ValueError): self.create() return {} @@ -89,5 +89,5 @@ class SessionStore(SessionBase): """ session_cache = getattr(self, '_session_cache', {}) return signing.dumps(session_cache, compress=True, - salt='django.contrib.sessions.backends.cookies', + salt='django.contrib.sessions.backends.signed_cookies', serializer=PickleSerializer) diff --git a/docs/topics/http/sessions.txt b/docs/topics/http/sessions.txt index 2997f6fd03..2f13c9662a 100644 --- a/docs/topics/http/sessions.txt +++ b/docs/topics/http/sessions.txt @@ -104,7 +104,7 @@ Using cookie-based sessions .. versionadded:: 1.4 To use cookies-based sessions, set the :setting:`SESSION_ENGINE` setting to -``"django.contrib.sessions.backends.cookies"``. The session data will be +``"django.contrib.sessions.backends.signed_cookies"``. The session data will be stored using Django's tools for :doc:`cryptographic signing ` and the :setting:`SECRET_KEY` setting.