mirror of https://github.com/django/django.git
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
This commit is contained in:
parent
1adf8d4386
commit
c20d33201c
|
@ -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)
|
||||
|
|
|
@ -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.
|
||||
|
||||
|
|
Loading…
Reference in New Issue