|
[Webware-checkins] CVS: Webware/WebKit HTTPResponse.py,1.18,1.19 Session.py,1.24,1.25
From: Geoff Talvola <gtalvola@us...> - 2002-04-24 01:22
|
Update of /cvsroot/webware/Webware/WebKit
In directory usw-pr-cvs1:/tmp/cvs-serv21843/WebKit
Modified Files:
HTTPResponse.py Session.py
Log Message:
applied Ken Lalonde's patch that makes the session ID cookie get deleted from the client when the session times out.
Index: HTTPResponse.py
===================================================================
RCS file: /cvsroot/webware/Webware/WebKit/HTTPResponse.py,v
retrieving revision 1.18
retrieving revision 1.19
diff -C2 -d -r1.18 -r1.19
*** HTTPResponse.py 14 Mar 2002 00:58:21 -0000 1.18
--- HTTPResponse.py 24 Apr 2002 01:22:51 -0000 1.19
***************
*** 223,230 ****
cookie = Cookie('_SID_', sess.identifier())
cookie.setPath('/')
! if sess.timeout() == 0:
# Invalid -- tell client to forget the cookie.
cookie.setMaxAge(0)
! cookie._cookie['expires'] = -365*24*60*60
self.addCookie(cookie)
if debug: print prefix, 'setting sid =', sess.identifier()
--- 223,230 ----
cookie = Cookie('_SID_', sess.identifier())
cookie.setPath('/')
! if sess.isExpired() or sess.timeout() == 0:
# Invalid -- tell client to forget the cookie.
cookie.setMaxAge(0)
! cookie.setExpires(-365*24*60*60)
self.addCookie(cookie)
if debug: print prefix, 'setting sid =', sess.identifier()
Index: Session.py
===================================================================
RCS file: /cvsroot/webware/Webware/WebKit/Session.py,v
retrieving revision 1.24
retrieving revision 1.25
diff -C2 -d -r1.24 -r1.25
*** Session.py 6 Mar 2002 14:52:26 -0000 1.24
--- Session.py 24 Apr 2002 01:22:51 -0000 1.25
***************
*** 113,116 ****
--- 113,117 ----
self._lastAccessTime = 0
self._values = {}
+ self._timeout = 0
|
| Thread | Author | Date |
|---|---|---|
| [Webware-checkins] CVS: Webware/WebKit HTTPResponse.py,1.18,1.19 Session.py,1.24,1.25 | Geoff Talvola <gtalvola@us...> |