$readonly
$readonly : boolean
Access session read-only?
SessionHandler storage implementation for SQL databases.
Uses the following SQL table structure:
CREATE TABLE horde_sessionhandler ( VARCHAR(32) NOT NULL, session_lastmodified INT NOT NULL, session_data LONGBLOB, -- Or, on some DBMS systems: -- session_data IMAGE, PRIMARY KEY (session_id) ); CREATE INDEX session_lastmodified_idx ON horde_sessionhandler (session_lastmodified);
Copyright 2002-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.
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 |