class SessionStore:
Known subclasses: session3.store.DirectorySessionStore.DirectorySessionStore, session3.store.DurusSessionStore.DurusSessionStore, session3.store.MySQLSessionStore.MySQLSessionStore, session3.store.PostgresSessionStore.PostgresSessionStore, session3.store.ShelveSessionStore.ShelveSessionStore
Persistent Session storage API for session3's SessionManager.
Subclass this class & provide implementations of load_session,
save_session, and delete_session, and voila, persistent sessions!
| Method | delete |
Delete all sessions that have not been modified for N minutes. The default implementation does nothing, meaning the store cannot delete old sessions. |
| Method | delete |
Delete the session in the store. |
| Method | has |
Return true if the session exists in the store, else false. |
| Method | iter |
Return an iterable of (id, session) for all sessions in the store. |
| Method | load |
Return the session if it exists, else return 'default'. |
| Method | save |
Save the session in the store. |
| Method | setup |
Initialize the session store; e.g., create required database tables. If a previous store exists, overwrite it or raise an error. The default implmenetation does nothing, meaning no setup is necessary. |
| Class Variable | is |
Undocumented |
| Class Variable | is |
Undocumented |
session3.store.DirectorySessionStore.DirectorySessionStore, session3.store.MySQLSessionStore.MySQLSessionStoreDelete all sessions that have not been modified for N minutes. The default implementation does nothing, meaning the store cannot delete old sessions.
This method is never called by the session manager. It's for your application maintenance program; e.g., a daily cron job.
session3.store.DirectorySessionStore.DirectorySessionStore, session3.store.DurusSessionStore.DurusSessionStore, session3.store.MySQLSessionStore.MySQLSessionStore, session3.store.PostgresSessionStore.PostgresSessionStore, session3.store.ShelveSessionStore.ShelveSessionStoreDelete the session in the store.
session3.store.MySQLSessionStore.MySQLSessionStoreReturn an iterable of (id, session) for all sessions in the store.
This method is never called by the session manager; it's for admin applications that want to browse the sessions.
session3.store.DirectorySessionStore.DirectorySessionStore, session3.store.DurusSessionStore.DurusSessionStore, session3.store.MySQLSessionStore.MySQLSessionStore, session3.store.PostgresSessionStore.PostgresSessionStore, session3.store.ShelveSessionStore.ShelveSessionStoreReturn the session if it exists, else return 'default'.
session3.store.DirectorySessionStore.DirectorySessionStore, session3.store.DurusSessionStore.DurusSessionStore, session3.store.MySQLSessionStore.MySQLSessionStore, session3.store.PostgresSessionStore.PostgresSessionStore, session3.store.ShelveSessionStore.ShelveSessionStoreSave the session in the store.
session3.store.MySQLSessionStore.MySQLSessionStore, session3.store.PostgresSessionStore.PostgresSessionStoreInitialize the session store; e.g., create required database tables. If a previous store exists, overwrite it or raise an error. The default implmenetation does nothing, meaning no setup is necessary.
This method is never called by the session manager; it's for your application setup program.
session3.store.DirectorySessionStore.DirectorySessionStore, session3.store.DurusSessionStore.DurusSessionStore, session3.store.MySQLSessionStore.MySQLSessionStore, session3.store.PostgresSessionStore.PostgresSessionStore, session3.store.ShelveSessionStore.ShelveSessionStoreUndocumented
session3.store.DirectorySessionStore.DirectorySessionStore, session3.store.DurusSessionStore.DurusSessionStore, session3.store.MySQLSessionStore.MySQLSessionStore, session3.store.PostgresSessionStore.PostgresSessionStore, session3.store.ShelveSessionStore.ShelveSessionStoreUndocumented