Elgg
Version 1.9
|
Public Member Functions | |||||||
__construct (Elgg_Database $db) | |||||||
Constructor. More... | |||||||
open ($save_path, $name) | |||||||
Re-initialize existing session, or creates a new one.Called when a session starts or when session_start() is invoked.
| |||||||
read ($session_id) | |||||||
Reads the session data from the session storage, and returns the results.
| |||||||
write ($session_id, $session_data) | |||||||
Writes the session data to the session storage.
| |||||||
close () | |||||||
Closes the current session.
| |||||||
destroy ($session_id) | |||||||
Destroys a session.
| |||||||
gc ($max_lifetime) | |||||||
Cleans up expired sessions.
| |||||||
Protected Attributes | |
$db | |
Definition at line 11 of file DatabaseSessionHandler.php.
Elgg_Http_DatabaseSessionHandler::__construct | ( | Elgg_Database | $db | ) |
Constructor.
Elgg_Database | $db | The database |
Definition at line 21 of file DatabaseSessionHandler.php.
Elgg_Http_DatabaseSessionHandler::close | ( | ) |
Closes the current session.
Implements Elgg_Http_SessionHandler.
Definition at line 69 of file DatabaseSessionHandler.php.
Elgg_Http_DatabaseSessionHandler::destroy | ( | $session_id | ) |
Destroys a session.
string | $session_id | The session id. |
Implements Elgg_Http_SessionHandler.
Definition at line 76 of file DatabaseSessionHandler.php.
Elgg_Http_DatabaseSessionHandler::gc | ( | $max_lifetime | ) |
Cleans up expired sessions.
int | $max_lifetime | Sessions not updated for max_lifetime seconds are removed. |
Implements Elgg_Http_SessionHandler.
Definition at line 86 of file DatabaseSessionHandler.php.
Elgg_Http_DatabaseSessionHandler::open | ( | $save_path, | |
$name | |||
) |
Re-initialize existing session, or creates a new one.Called when a session starts or when session_start() is invoked.
string | $save_path | The path where to store/retrieve the session. |
string | $name | The session name. |
Implements Elgg_Http_SessionHandler.
Definition at line 28 of file DatabaseSessionHandler.php.
Elgg_Http_DatabaseSessionHandler::read | ( | $session_id | ) |
Reads the session data from the session storage, and returns the results.
string | $session_id | The session id. |
Implements Elgg_Http_SessionHandler.
Definition at line 35 of file DatabaseSessionHandler.php.
Elgg_Http_DatabaseSessionHandler::write | ( | $session_id, | |
$session_data | |||
) |
Writes the session data to the session storage.
string | $session_id | The session id. |
string | $session_data | The encoded session data. |
Implements Elgg_Http_SessionHandler.
Definition at line 50 of file DatabaseSessionHandler.php.
|
protected |
Definition at line 14 of file DatabaseSessionHandler.php.