Elgg  Version 1.9
Public Member Functions | List of all members
Elgg_Http_MockSessionHandler Class Reference
Inheritance diagram for Elgg_Http_MockSessionHandler:
Elgg_Http_SessionHandler

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.
Parameters
string$save_pathThe path where to store/retrieve the session.
string$nameThe session name.
Returns
boolean
More...
 
 read ($session_id)
 Reads the session data from the session storage, and returns the results.
Parameters
string$session_idThe session id.
Returns
string Returns an encoded string of the read data
More...
 
 write ($session_id, $session_data)
 Writes the session data to the session storage.
Parameters
string$session_idThe session id.
string$session_dataThe encoded session data.
Returns
boolean
More...
 
 close ()
 Closes the current session.
Returns
boolean
More...
 
 destroy ($session_id)
 Destroys a session.
Parameters
string$session_idThe session id.
Returns
boolean
More...
 
 gc ($max_lifetime)
 Cleans up expired sessions.
Parameters
int$max_lifetimeSessions not updated for max_lifetime seconds are removed.
Returns
boolean
More...
 

Detailed Description

Definition at line 11 of file MockSessionHandler.php.

Member Function Documentation

Elgg_Http_MockSessionHandler::close ( )

Closes the current session.

Returns
boolean

Implements Elgg_Http_SessionHandler.

Definition at line 37 of file MockSessionHandler.php.

Elgg_Http_MockSessionHandler::destroy (   $session_id)

Destroys a session.

Parameters
string$session_idThe session id.
Returns
boolean

Implements Elgg_Http_SessionHandler.

Definition at line 44 of file MockSessionHandler.php.

Elgg_Http_MockSessionHandler::gc (   $max_lifetime)

Cleans up expired sessions.

Parameters
int$max_lifetimeSessions not updated for max_lifetime seconds are removed.
Returns
boolean

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.

Parameters
string$save_pathThe path where to store/retrieve the session.
string$nameThe session name.
Returns
boolean

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.

Parameters
string$session_idThe session id.
Returns
string Returns an encoded string of the read data

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.

Parameters
string$session_idThe session id.
string$session_dataThe encoded session data.
Returns
boolean

Implements Elgg_Http_SessionHandler.

Definition at line 30 of file MockSessionHandler.php.


The documentation for this class was generated from the following file: