fixed major problem with persistance of session.flash
This commit is contained in:
@@ -1 +1 @@
|
||||
Version 2.6.3-stable+timestamp.2013.09.19.18.31.43
|
||||
Version 2.6.3-stable+timestamp.2013.09.19.20.49.27
|
||||
|
||||
+3
-2
@@ -860,8 +860,6 @@ class Session(Storage):
|
||||
response.session_id = None
|
||||
response.session_new = True
|
||||
|
||||
if self.flash:
|
||||
(response.flash, self.flash) = (self.flash, None)
|
||||
|
||||
# set the cookie now if you know the session_id so user can set
|
||||
# cookie attributes in controllers/models
|
||||
@@ -874,6 +872,9 @@ class Session(Storage):
|
||||
session_pickled = cPickle.dumps(self)
|
||||
response.session_hash = hashlib.md5(session_pickled).hexdigest()
|
||||
|
||||
if self.flash:
|
||||
(response.flash, self.flash) = (self.flash, None)
|
||||
|
||||
|
||||
def renew(self, clear_session=False):
|
||||
|
||||
|
||||
Reference in New Issue
Block a user