Elgg
Version 1.9
|
Public Member Functions | |||||||
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.
| |||||||
Definition at line 11 of file MockSessionHandler.php.
Elgg_Http_MockSessionHandler::close | ( | ) |
Closes the current session.
Implements Elgg_Http_SessionHandler.
Definition at line 37 of file MockSessionHandler.php.
Elgg_Http_MockSessionHandler::destroy | ( | $session_id | ) |
Destroys a session.
string | $session_id | The session id. |
Implements Elgg_Http_SessionHandler.
Definition at line 44 of file MockSessionHandler.php.
Elgg_Http_MockSessionHandler::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 51 of file MockSessionHandler.php.
Elgg_Http_MockSessionHandler::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 16 of file MockSessionHandler.php.
Elgg_Http_MockSessionHandler::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 23 of file MockSessionHandler.php.
Elgg_Http_MockSessionHandler::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 30 of file MockSessionHandler.php.