fixed major problem with persistance of session.flash

This commit is contained in:
mdipierro
2013-09-19 20:51:11 -05:00
parent 01e5107a96
commit 59a7db56a4
2 changed files with 4 additions and 3 deletions
+1 -1
View File
@@ -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
View File
@@ -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):