Home | Trees | Indices | Help |
|
---|
|
Session implementation for CherryPy.
We use cherrypy.request to store some convenient variables as well as data about the session for the current request. Instead of polluting cherrypy.request we use a Session object bound to cherrypy.session to store these variables.
|
|||
Session A CherryPy dict-like Session object (one per request). |
|||
RamSession | |||
FileSession Implementation of the File backend for sessions |
|||
PostgresqlSession Implementation of the PostgreSQL backend for sessions. |
|||
MemcachedSession |
|
|||
|
|||
|
|||
|
|||
|
|||
|
|
|||
missing = object()
|
|||
__package__ =
|
|
Initialize session object (using cookies). storage_type: one of 'ram', 'file', 'postgresql'. This will be used to look up the corresponding class in cherrypy.lib.sessions globals. For example, 'file' will use the FileSession class. path: the 'path' value to stick in the response cookie metadata. path_header: if 'path' is None (the default), then the response cookie 'path' will be pulled from request.headers[path_header]. name: the name of the cookie. timeout: the expiration timeout (in minutes) for both the cookie and stored session data. domain: the cookie domain. secure: if False (the default) the cookie 'secure' value will not be set. If True, the cookie 'secure' value will be set (to 1). clean_freq (minutes): the poll rate for expired session cleanup. Any additional kwargs will be bound to the new Session instance, and may be specific to the storage type. See the subclass of Session you're using for more information. |
Set a response cookie for the client. path: the 'path' value to stick in the response cookie metadata. path_header: if 'path' is None (the default), then the response cookie 'path' will be pulled from request.headers[path_header]. name: the name of the cookie. timeout: the expiration timeout for the cookie. domain: the cookie domain. secure: if False (the default) the cookie 'secure' value will not be set. If True, the cookie 'secure' value will be set (to 1). |
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Tue Mar 19 14:12:25 2013 | http://epydoc.sourceforge.net |