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.
Author: Mike Cochrane ([email protected])
Inheritance: extends Horde_SessionHandler_Storage
显示文件 Open project: horde/horde

Protected Properties

Property Type Description
$_db Horde_Db_Adapter Handle for the current database connection.

Public Methods

Method Description
__construct ( array $params = [] ) Constructor.
close ( )
destroy ( $id )
gc ( $maxlifetime = 300 )
getSessionIDs ( )
open ( $save_path = null, $session_name = null )
read ( $id )
write ( $id, $session_data )

Method Details

__construct() public method

Constructor.
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'

close() public method

public close ( )

destroy() public method

public destroy ( $id )

gc() public method

public gc ( $maxlifetime = 300 )

getSessionIDs() public method

public getSessionIDs ( )

open() public method

public open ( $save_path = null, $session_name = null )

read() public method

public read ( $id )

write() public method

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