Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed #17223 -- Correctly reference the signed cookies session backen…

…d. Thanks, Bryan Veloso.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@17101 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit c20d33201c6eccc7f21f72bb61b1737be59b16d4 1 parent 1adf8d4
@jezdez jezdez authored
View
4 django/contrib/sessions/backends/signed_cookies.py
@@ -33,7 +33,7 @@ def load(self):
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 @@ def _get_session_key(self):
"""
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)
View
2  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 </topics/signing>`
and the :setting:`SECRET_KEY` setting.
Please sign in to comment.
Something went wrong with that request. Please try again.