Package session2 :: Package store :: Module VolatileSessionStore :: Class VolatileSessionStore
[frames | no frames]

Class VolatileSessionStore

SessionStore --+
               |
              VolatileSessionStore


A simple volatile (non-persistent) session store for session2.


Method Summary
  __init__(self)
Create the dictionary.
  delete_session(self, session)
Delete the session in the dictionary.
  has_session(self, id)
Return true if the session exists in the dictionary, else false.
  load_session(self, id, default)
Return the session if it exists, else return 'default'.
  save_session(self, session)
Save the session in the dictionary..
    Inherited from SessionStore
  delete_old_sessions(self, minutes)
Delete all sessions that have not been modified for N minutes.
  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.

Class Variable Summary
bool is_multiprocess_safe = True
bool is_thread_safe = True

Method Details

__init__(self)
(Constructor)

Create the dictionary.

delete_session(self, session)

Delete the session in the dictionary.

Overrides:
session2.store.SessionStore.SessionStore.delete_session

has_session(self, id)

Return true if the session exists in the dictionary, else false.

Overrides:
session2.store.SessionStore.SessionStore.has_session

load_session(self, id, default=None)

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

Overrides:
session2.store.SessionStore.SessionStore.load_session

save_session(self, session)

Save the session in the dictionary..

Overrides:
session2.store.SessionStore.SessionStore.save_session

Class Variable Details

is_multiprocess_safe

Type:
bool
Value:
True                                                                   

is_thread_safe

Type:
bool
Value:
True                                                                   

Generated by Epydoc 2.1 on Sat Feb 4 16:40:10 2006 http://epydoc.sf.net