class documentation
A session object that also acts like a dictionary.
Unlike some object/dict hybrids, keys and attributes are distinct and not interchangeable. Beware of assigning attributes that override dict methods.
Method | __init__ |
__init__ is called only by SessionManager.SessionManager |
Inherited from Session
:
Method | __repr__ |
Undocumented |
Method | __str__ |
Undocumented |
Method | create |
Create a new form token and add it to a queue of outstanding form tokens for this session. A maximum of MAX_FORM_TOKENS are saved. The new token is returned. |
Method | dump |
Undocumented |
Method | get |
Return the number of seconds since session was last accessed. |
Method | get |
Return the time that this session was last accessed (seconds since epoch). |
Method | get |
_now arg is not strictly necessary, but there for consistency with get_access_age() |
Method | get |
Return the time that this session was created (seconds since epoch). |
Method | get |
Return the IP address (dotted-quad string) that made the initial request in this session. |
Method | get |
Undocumented |
Method | has |
Return True if token is in the queue of outstanding tokens. |
Method | has |
Return True if this session contains any information that must be saved. |
Method | remove |
Remove token from the queue of outstanding tokens. |
Method | set |
Undocumented |
Method | start |
Called near the beginning of each request: after the HTTPRequest object has been built, but before we traverse the URL or call the callable object found by URL traversal. |
Constant | MAX |
Undocumented |
Instance Variable | id |
Undocumented |
Instance Variable | user |
Undocumented |
Method | _set |
Undocumented |
Instance Variable | _access |
Undocumented |
Instance Variable | _creation |
Undocumented |
Instance Variable | _form |
Undocumented |
Instance Variable | _remote |
Undocumented |
overrides
session3.Session.Session.__init__
__init__
is called only by SessionManager.SessionManager