Overview
Session adapter for SQL based data store.
Package
This class is part of the Solar_Session package.
Inheritance:
Solar_Session_Handler_Adapter_Sql
Configuration Keys
sql: A Solar_Sql dependency injection.table: Table where the session data will be stored, default 'sessions'.id_col: Column name of the session id, default 'id'.created_col: Column name where time of creation is to be stored, default 'created'.updated_col: Column name where time of update is to be stored, default 'updated'.data_col: Column name where the actual session data will be stored, default 'data'.
Constants
None.
Public Properties
The Solar_Session_Handler_Adapter_Sql class has no public properties; try the list of all properties.
Public Methods
These are all the public methods in the Solar_Session_Handler_Adapter_Sql class.
You can also view the list of all public, protected, and private methods.
-
__construct() -
Constructor.
-
__destruct() -
Destructor; calls session_write_close() so that the session gets written before the object is destroyed.
-
close() -
Close session handler.
-
destroy() -
Destroys session data.
-
dump() -
Convenience method for getting a dump the whole object, or one of its properties, or an external variable.
-
gc() -
Removes old session data (garbage collection).
-
locale() -
Looks up class-specific locale strings based on a key.
-
open() -
Open session handler.
-
read() -
Reads session data.
-
write() -
Writes session data.