Package aquarium :: Package session :: Module SessionContainer
[show private | hide private]
[frames | no frames]

Module aquarium.session.SessionContainer

This module contains the base classes SessionContainer and Session.


Classes
Session This is a dict-like object for session management.
SessionContainer This is a container for sessions.

Function Summary
  getCookieExpirationNever()
Return this in Session.getCookieExpiration for a long-lasting cookie.

Function Details

getCookieExpirationNever()

Return this in Session.getCookieExpiration for a long-lasting cookie.

Sometimes you don't want the cookie to go away when the user closes his browser. Setting a fixed time limit is bad if your software allows the user to change the server's time. Neither expires nor Max-Age works for this case. Hence, I'll just return something 20 years from now. I see that Google, PayPal, and MSN are doing something similar. If the user sets his time wrong by more than 20 years, he'll have to change his browser's time too.


Generated by Epydoc 2.1 on Mon Jan 1 16:34:19 2007 http://epydoc.sf.net