Skip to content

Commit

Permalink
Fixed #17223 -- Correctly reference the signed cookies session backen…
Browse files Browse the repository at this point in the history
…d. Thanks, Bryan Veloso.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@17101 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information
jezdez committed Nov 17, 2011
1 parent 1adf8d4 commit c20d332
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions django/contrib/sessions/backends/signed_cookies.py
Expand Up @@ -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 {}
Expand Down Expand Up @@ -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)
2 changes: 1 addition & 1 deletion docs/topics/http/sessions.txt
Expand Up @@ -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.

Expand Down

0 comments on commit c20d332

Please sign in to comment.