Update of /cvsroot/webware/Webware/WebKit
In directory sc8-pr-cvs1:/tmp/cvs-serv29723/WebKit
Modified Files:
Application.py
Log Message:
Fixed handling of expired sessions. Previously, if you tried to access an
expired session before the session sweeper thread had cleaned it out,
you'd get that expired session for one request, but on the second request
you'd get a new session. Now it correctly returns a new empty session
with a new session ID on the first request after expiration.
Index: Application.py
===================================================================
RCS file: /cvsroot/webware/Webware/WebKit/Application.py,v
retrieving revision 1.160
retrieving revision 1.161
diff -C2 -d -r1.160 -r1.161
*** Application.py 18 Feb 2003 05:40:29 -0000 1.160
--- Application.py 18 Feb 2003 15:10:27 -0000 1.161
***************
*** 511,514 ****
--- 511,515 ----
def handleInvalidSession(self, transaction):
+ transaction.setSession(None)
res = transaction.response()
debug = self.setting('Debug')['Sessions']
|