Elgg
Version 1.9
|
Public Member Functions | |
open ($save_path, $name) | |
Re-initialize existing session, or creates a new one. More... | |
read ($session_id) | |
Reads the session data from the session storage, and returns the results. More... | |
write ($session_id, $session_data) | |
Writes the session data to the session storage. More... | |
close () | |
Closes the current session. More... | |
destroy ($session_id) | |
Destroys a session. More... | |
gc ($max_lifetime) | |
Cleans up expired sessions. More... | |
Definition at line 13 of file SessionHandler.php.
Elgg_Http_SessionHandler::close | ( | ) |
Closes the current session.
Implemented in Elgg_Http_DatabaseSessionHandler, and Elgg_Http_MockSessionHandler.
Elgg_Http_SessionHandler::destroy | ( | $session_id | ) |
Destroys a session.
string | $session_id | The session id. |
Implemented in Elgg_Http_DatabaseSessionHandler, and Elgg_Http_MockSessionHandler.
Elgg_Http_SessionHandler::gc | ( | $max_lifetime | ) |
Cleans up expired sessions.
int | $max_lifetime | Sessions not updated for max_lifetime seconds are removed. |
Implemented in Elgg_Http_DatabaseSessionHandler, and Elgg_Http_MockSessionHandler.
Elgg_Http_SessionHandler::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. |
Implemented in Elgg_Http_DatabaseSessionHandler, and Elgg_Http_MockSessionHandler.
Elgg_Http_SessionHandler::read | ( | $session_id | ) |
Reads the session data from the session storage, and returns the results.
string | $session_id | The session id. |
Implemented in Elgg_Http_DatabaseSessionHandler, and Elgg_Http_MockSessionHandler.
Elgg_Http_SessionHandler::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. |
Implemented in Elgg_Http_DatabaseSessionHandler, and Elgg_Http_MockSessionHandler.