Home | Trees | Index | Help |
|
---|
Package session2 :: Package store :: Module DirectorySessionStore :: Class DirectorySessionStore |
|
SessionStore
--+
|
DirectorySessionStore
Store sessions in individual files within a directory.
Method Summary | |
---|---|
__init__ takes a directory name, with an option to create it if it's not already there. | |
Delete all sessions that have not been modified for N minutes. | |
Delete the session file. | |
Load the pickled session from a file. | |
Pickle the session and save it into a file. | |
Inherited from SessionStore | |
Return true if the session exists in the store, else false. | |
Return an iterable of (id, session) for all sessions in the store. | |
Initialize the session store; e.g., create required database tables. |
Class Variable Summary | |
---|---|
bool |
is_multiprocess_safe = False
|
bool |
is_thread_safe = False
|
int |
pickle_protocol = 2 |
Method Details |
---|
__init__(self,
directory,
create=False)
|
delete_old_sessions(self, minutes)Delete all sessions that have not been modified for N minutes. This method is never called by the session manager. It's for your application maintenance program; e.g., a daily cron job.
|
delete_session(self, session)Delete the session file. |
load_session(self, id, default=None)Load the pickled session from a file. |
save_session(self, session)Pickle the session and save it into a file. |
Class Variable Details |
---|
is_multiprocess_safe
|
is_thread_safe
|
pickle_protocol
|
Home | Trees | Index | Help |
|
---|
Generated by Epydoc 2.1 on Sat Feb 4 16:40:10 2006 | http://epydoc.sf.net |