Class QDbBackedSessionHandler
Created by vaibhav on 1/28/12 (3:34 AM).
This file contains the QDbBackedSessionHandler class.
Relies on a SQL database table with the following columns: id - STRING primary key last_access_time - INT data - BLOB or BINARY or VARBINARY. Must be a binary safe column, and capable of holding the maximum size of session data for your app, which depends on what you are putting in the $_SESSION variable.
- QBaseClass
- QDbBackedSessionHandler
public static
boolean
|
|
public static
boolean
|
#
SessionOpen( string $save_path, string $session_name )
Open the session (used by PHP when the session handler is active) |
public static
boolean
|
|
public static
string
|
|
public static
boolean
|
#
SessionExists( string $id )
Tells whether a session by given name exists or not (used by PHP when the session handler is active) |
public static
boolean
|
|
public static
boolean
|
|
public static
boolean
|
#
SessionGarbageCollect( integer $intMaxSessionLifetime )
Garbage collect session data (delete/destroy sessions which are older than the max allowed lifetime) |
OverrideAttributes(),
__call(),
__get(),
__set()
|
protected static
integer
|
$intDbIndex
The index in the database array |
|
protected static
string
|
$strTableName
The table name to be used for saving sessions. |
|
protected static
string
|
$strSessionName
The session name to be used for saving sessions. |
#
''
|
public static
boolean
|
$blnEncrypt
Whether to encrypt the session data. Highly recommended whenever sessions can authenticate a user. |
#
true
|
public static
boolean
|
$blnCompress
Whether to compress the session data. |
#
true
|