File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 2121- edit collision detection was broken for index-page edits
2222- sqlite backend wasn't migrating multilink tables correctly
2323- use SimpleCookie instead of Cookie (is an alias for the evil SmartCookie)
24+ - handle older sessions in session dbm
2425
2526
26272004-03-24 0.7.0b1
Original file line number Diff line number Diff line change 1- #$Id: sessions_dbm.py,v 1.2 2004-03-19 04:47:59 richard Exp $
1+ #$Id: sessions_dbm.py,v 1.3 2004-03-26 23:54:40 richard Exp $
22"""This module defines a very basic store that's used by the CGI interface
33to store session and one-time-key information.
44
@@ -131,7 +131,8 @@ def clean(self, now):
131131 """
132132 week = 60 * 60 * 24 * 7
133133 for sessid in self .list ():
134- interval = now - self .get (sessid , '__timestamp' )
134+ interval = now - self .get (sessid , '__timestamp' ,
135+ default = time .time ())
135136 if interval > week :
136137 self .destroy (sessid )
137138
You can’t perform that action at this time.
0 commit comments