Table of Contents

Session Management Reference

Main Commands

All of the following commands are static, and should be preceded by ADOdb_session::

CommandDescription
config()Establishes a connection to the database for session management
debug()Gets or sets debugging mode for the session management connection
driver()Gets or sets the ADOdb database driver associated with the connection
host()Gets or sets the host name for the session management connection
user()Gets or sets the user name for the session management connection
password()Gets or sets the password for the session management connection
database()Gets or sets the database name for the session management connection
persist()Gets or sets persistent database connection mode for the session management connection
lifetime()Gets or sets the session lifetime
expireNotify()Gets or sets the garbage collection callback function for the session management connection
table()Overrides the default table name for the storage of session data
optimize()Gets or sets table optimization mode
clob()Gets or sets if clobs are available to store session data
filter()Gets or sets the session data filter
encryptionKey()Gets or sets the encryption key if encrypted sessions are in use

Helper Functions

Command Description
adodb_unserialize() Unpacks the session data from the database and makes it human-readable
adodb_session_regenerate_id() Manually regenerate the session id (deprecated)

Global Variables

Variable Description
$ADODB_SESSION_EXPIRE_NOTIFY Holds information about session expiration notifications
$ADODB_SESS_CONN Holds a globalized instance of the session database connection