Open a 'shelve' dictionary with the given filename, and store sessions
in it.
Shelve is not thread safe or multiprocess safe. See the "Restrictions"
section for the shelve module in the Python Library Reference for
information about file locking.
Method Summary |
|
__init__ (self,
filename)
__init__ takes the filename to use as the shelve store. |
|
delete_session (self,
session)
Delete the given session from the shelf. |
|
load_session (self,
id,
default)
Load the session from the shelf. |
|
open (self)
Open the shelve store file. |
|
save_session (self,
session)
Save the session to the shelf. |
Inherited from SessionStore |
|
delete_old_sessions (self,
minutes)
Delete all sessions that have not been modified for N minutes. |
|
has_session (self,
id)
Return true if the session exists in the store, else false. |
|
iter_sessions (self)
Return an iterable of (id, session) for all sessions in the store. |
|
setup (self)
Initialize the session store; e.g., create required database tables. |