PHP Class Horde_SessionHandler_Storage_Sql, horde
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-2016 Horde LLC (http://www.horde.org/)
See the enclosed file COPYING for license information (LGPL). If you
did not receive this file, see http://www.horde.org/licenses/lgpl21.
显示文件
Open project: horde/horde
Protected Properties
Property |
Type |
Description |
|
$_db |
Horde_Db_Adapter |
Handle for the current database connection. |
|
Public Methods
Method Details
__construct()
public method
public __construct ( array $params = [] ) |
$params |
array |
Parameters:
'db' - (Horde_Db_Adapter) [REQUIRED] The DB instance.
'table' - (string) The name of the sessions table.
DEFAULT: 'horde_sessionhandler'
|
public gc ( $maxlifetime = 300 ) |
getSessionIDs()
public method
public open ( $save_path = null, $session_name = null ) |
public write ( $id, $session_data ) |
Property Details
$_db protected_oe property
Handle for the current database connection.
protected Horde_Db_Adapter $_db |
return |
Horde_Db_Adapter |
|