Changeset 1174
- Timestamp:
- 06/29/06 12:42:31
- Files:
-
- branches/cherrypy-2.x/cherrypy/filters/sessionfilter.py (modified) (2 diffs)
- trunk/cherrypy/lib/sessions.py (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/cherrypy-2.x/cherrypy/filters/sessionfilter.py
r1173 r1174 39 39 import cherrypy 40 40 import basefilter 41 from cherrypy.lib import httptools 41 42 42 43 … … 155 156 gmt_expiration_time = time.gmtime(time.time() + 156 157 (sess.session_timeout * 60)) 157 cookie[cookie_name]['expires'] = time.strftime( 158 "%a, %d-%b-%Y %H:%M:%S GMT", gmt_expiration_time) 158 cookie[cookie_name]['expires'] = httptools.HTTPDate(gmt_expiration_time) 159 159 if cookie_domain is not None: 160 160 cookie[cookie_name]['domain'] = cookie_domain trunk/cherrypy/lib/sessions.py
r1162 r1174 26 26 27 27 import cherrypy 28 from cherrypy.lib import http 28 29 29 30 _session_last_clean_up_time = datetime.datetime.now() … … 130 131 #cookie[cookie_name]['max-age'] = self.timeout * 60 131 132 gmt_expiration_time = time.gmtime(time.time() + (self.timeout * 60)) 132 cookie[self.cookie_name]['expires'] = time.strftime( 133 "%a, %d-%b-%Y %H:%M:%S GMT", gmt_expiration_time) 133 cookie[self.cookie_name]['expires'] = http.HTTPDate(gmt_expiration_time) 134 134 if self.cookie_domain is not None: 135 135 cookie[self.cookie_name]['domain'] = self.cookie_domain

