Package session2 :: Package store :: Module PostgresSessionStore
[frames | no frames]

Module session2.store.PostgresSessionStore

Store sessions in a PostgreSQL table.

Two extra methods are provided, .create_table and .delete_old_sessions. These are not called by session2 but may be useful in your programs. They use a third column of type TIMESTAMP, which is updated every time the row changes.

This module assumes the connection is in transaction-mode (the default for psycopg). Use a separate database connection for sessions, or else your transactions will become confused.


Classes
PostgresSessionStore Store pickled sessions in an SQL database.

Variable Summary
str DEFAULT_TABLE = 'sessions'

Variable Details

DEFAULT_TABLE

Type:
str
Value:
'sessions'                                                             

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