mirror of
https://github.com/django/django.git
synced 2025-11-15 09:40:57 +00:00
This also removes the implicit initialization of the session key on the first access in favor of explicit initialization. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17155 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
fb7ab7730d
commit
bda21e2b9d
8 changed files with 59 additions and 45 deletions
|
|
@ -14,13 +14,13 @@ class SessionStore(SessionBase):
|
|||
return False
|
||||
|
||||
def create(self):
|
||||
self.session_key = self.encode({})
|
||||
self._session_key = self.encode({})
|
||||
|
||||
def save(self, must_create=False):
|
||||
self.session_key = self.encode(self._session)
|
||||
self._session_key = self.encode(self._session)
|
||||
|
||||
def delete(self, session_key=None):
|
||||
self.session_key = self.encode({})
|
||||
self._session_key = self.encode({})
|
||||
|
||||
def load(self):
|
||||
try:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue