Changeset 1673
- Timestamp:
- 06/17/07 18:55:09
- Files:
-
- trunk/cherrypy/lib/sessions.py (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/cherrypy/lib/sessions.py
r1652 r1673 379 379 def save(): 380 380 """Save any changed session data.""" 381 if not hasattr(cherrypy, "session"): 382 return 383 381 384 # Guard against running twice 382 385 if hasattr(cherrypy.request, "_sessionsaved"): … … 398 401 def close(): 399 402 """Close the session object for this request.""" 400 sess = cherrypy.session401 if sess .locked:403 sess = getattr(cherrypy, "session", None) 404 if sess and sess.locked: 402 405 # If the session is still locked we release the lock 403 406 sess.release_lock() … … 471 474 cookie[name]['secure'] = 1 472 475 476 473 477 def expire(): 474 478 """Expire the current session cookie."""

