====== Session Management Reference ====== ===== Main Commands ===== All of the following commands are **static**, and should be preceded by **//ADOdb_session:://** ^Command^Description| |[[v5:session:reference:config|config()]]|Establishes a connection to the database for session management| |[[v5:session:reference:debug|debug()]]|Gets or sets debugging mode for the session management connection| |[[v5:session:reference:driver|driver()]]|Gets or sets the ADOdb database driver associated with the connection| |[[v5:session:reference:host|host()]]|Gets or sets the host name for the session management connection| |[[v5:session:reference:user|user()]]|Gets or sets the user name for the session management connection| |[[v5:session:reference:password|password()]]|Gets or sets the password for the session management connection| |[[v5:session:reference:database|database()]]|Gets or sets the database name for the session management connection| |[[v5:session:reference:persist|persist()]]|Gets or sets persistent database connection mode for the session management connection| |[[v5:session:reference:lifetime|lifetime()]]|Gets or sets the session lifetime| |[[v5:session:reference:expirenotify|expireNotify()]]|Gets or sets the garbage collection callback function for the session management connection| |[[v5:session:reference:table|table()]]|Overrides the default table name for the storage of session data| |[[v5:session:reference:optimize|optimize()]]|Gets or sets table optimization mode| |[[v5:session:reference:clob|clob()]]|Gets or sets if clobs are available to store session data| |[[v5:session:reference:filter|filter()]]|Gets or sets the session data filter| |[[v5:session:reference:encryptionKey|encryptionKey()]]|Gets or sets the encryption key if encrypted sessions are in use| ===== Helper Functions ===== ^ Command ^ Description ^ | [[v5:session:reference:adodb_unserialize|adodb_unserialize()]] | Unpacks the session data from the database and makes it human-readable | | [[v5:session:reference:adodb_session_regenerate_id|adodb_session_regenerate_id()]] | Manually regenerate the session id (deprecated) | ===== Global Variables ===== ^ Variable ^ Description ^ | [[v5:session:reference:adodb_session_expire_notify|$ADODB_SESSION_EXPIRE_NOTIFY]] | Holds information about session expiration notifications | | [[v5:session:reference:adodb_sess_conn|$ADODB_SESS_CONN]] | Holds a globalized instance of the session database connection |