$readonly
$readonly : boolean
Access session read-only?
SessionHandler storage implementation for an external save handler defined via configuration parameters.
Copyright 2010-2017 Horde LLC (http://www.horde.org/)
See the enclosed file LICENSE for license information (LGPL). If you did not receive this file, see http://www.horde.org/licenses/lgpl21.
__construct(array $params = array())
Constructor.
array | $params | Required parameters: close - (callback) See session_set_save_handler(). destroy - (callback) See session_set_save_handler(). gc - (callback) See session_set_save_handler(). open - (callback) See session_set_save_handler(). read - (callback) See session_set_save_handler(). write - (callback) See session_set_save_handler(). |
open(string $save_path = null, string $session_name = null)
Open the backend.
string | $save_path | The path to the session object. |
string | $session_name | The name of the session. |
None found |
read(string $id) : string
Read the data for a particular session identifier from the backend.
string | $id | The session identifier. |
The session data.
None found |
write(string $id, string $session_data) : boolean
Write session data to the backend.
string | $id | The session identifier. |
string | $session_data | The session data. |
True on success, false otherwise.
None found |
destroy(string $id) : boolean
Destroy the data for a particular session identifier in the backend.
This method should only be called internally by PHP via session_set_save_handler().
string | $id | The session identifier. |
True on success, false otherwise.
None found |
gc(integer $maxlifetime = 300) : boolean
Garbage collect stale sessions from the backend.
This method should only be called internally by PHP via session_set_save_handler().
integer | $maxlifetime | The maximum age of a session. |
True on success, false otherwise.
None found |