allow to change session in db to session in file

This commit is contained in:
mdipierro
2013-08-20 11:15:51 -05:00
parent 343bb984f3
commit 6448518ce0
2 changed files with 5 additions and 1 deletions
+1 -1
View File
@@ -1 +1 @@
Version 2.6.0-development+timestamp.2013.08.20.10.57.14
Version 2.6.0-development+timestamp.2013.08.20.11.14.41
+4
View File
@@ -982,6 +982,10 @@ class Session(Storage):
# or no changes to session
if not response.session_db_table or self._forget or self._unchanged():
if (not response.session_db_table and
global_settings.db_sessions is not True and
response.session_masterapp in global_settings.db_sessions):
global_settings.db_sessions.remove(response.session_masterapp)
return False
table = response.session_db_table