class documentation

class MySQLSessionStore(SessionStore):

Constructor: MySQLSessionStore(conn, table)

View In Hierarchy

Undocumented

Method __init__ __init__ takes a MySQLdb connection object, together with an optional 'table' argument containing the name of the table to use.
Method delete_old_sessions 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_session Delete the session in the store.
Method iter_sessions Return an iterable of (id, session) for all sessions in the store.
Method load_session Return the session if it exists, else return 'default'.
Method save_session 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_multiprocess_safe Undocumented
Class Variable is_thread_safe Undocumented
Class Variable pickle_protocol Undocumented
Instance Variable conn Undocumented
Instance Variable table Undocumented

Inherited from SessionStore:

Method has_session Return true if the session exists in the store, else false.
def __init__(self, conn, table=None):

__init__ takes a MySQLdb connection object, together with an optional 'table' argument containing the name of the table to use.

def delete_old_sessions(self, minutes):

Delete 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.

def delete_session(self, session):

Delete the session in the store.

def iter_sessions(self):

Return 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.

def load_session(self, id, default=None):

Return the session if it exists, else return 'default'.

def save_session(self, session):

Save the session in the store.

def setup(self):

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.

This method is never called by the session manager; it's for your application setup program.

is_multiprocess_safe: bool =
is_thread_safe: bool =
pickle_protocol: int =

Undocumented

conn =

Undocumented

table =

Undocumented