Trees | Index | Help |
---|
Package WebStack :: Package Helpers :: Module Session :: Class SessionStore |
|
Method Summary | |
---|---|
Initialise the session store, specifying the transaction 'trans' within which all session access will occur, a base 'session_directory', the optional 'session_cookie_name' where the session identifier is held for each user, and specifying using the optional 'concurrent' parameter whether concurrent access within the framework might occur (1) or whether the framework queues accesses at some other level (0). | |
Close the store, tidying up files and filenames. | |
Expire the session in the given transaction. | |
Get the session for the given transaction, creating a new session if 'create' is set to 1 (rather than 0). |
Method Details |
---|
__init__(self,
trans,
session_directory,
session_cookie_name='SID',
concurrent=1,
delay=1)
Initialise the session store, specifying the transaction 'trans'
within which all session access will occur, a base 'session_directory',
the optional 'session_cookie_name' where the session identifier is held
for each user, and specifying using the optional 'concurrent' parameter
whether concurrent access within the framework might occur (1) or
whether the framework queues accesses at some other level (0). The
optional 'delay' argument specifies the time in seconds between each
poll of the session file when that file is found to be locked for
editing.
|
close(self)Close the store, tidying up files and filenames. |
expire_session(self)Expire the session in the given transaction. |
get_session(self, create)Get the session for the given transaction, creating a new session if 'create' is set to 1 (rather than 0). Where new sessions are created, an appropriate session identifier cookie will be created. Returns a session object or None if no session exists and none is then created. |
Trees | Index | Help |
---|
Generated by Epydoc 2.1 on Fri Jul 22 23:16:52 2005 | http://epydoc.sf.net |