Documentation

Horde_SessionHandler_Storage_External extends Horde_SessionHandler_Storage
in package

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.

Tags
author

Michael Slusarz slusarz@horde.org

category

Horde

license

http://www.horde.org/licenses/lgpl21 LGPL 2.1

Table of Contents

$readonly  : bool
Access session read-only?
$_params  : array<string|int, mixed>
Hash containing connection parameters.
__construct()  : mixed
Constructor.
__sleep()  : mixed
Storage objects do not support serialization.
close()  : mixed
Close the backend.
destroy()  : bool
Destroy the data for a particular session identifier in the backend.
gc()  : bool
Garbage collect stale sessions from the backend.
getSessionIDs()  : array<string|int, mixed>
Get a list of the valid session identifiers.
open()  : mixed
Open the backend.
read()  : string
Read the data for a particular session identifier from the backend.
setLogger()  : mixed
Set the logger object.
write()  : bool
Write session data to the backend.

Properties

$readonly

Access session read-only?

public bool $readonly = \false

$_params

Hash containing connection parameters.

protected array<string|int, mixed> $_params = array()

Methods

__construct()

Constructor.

public __construct([array<string|int, mixed> $params = array() ]) : mixed
Parameters
$params : array<string|int, mixed> = array()

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().
Tags
throws
InvalidArgumentException
Return values
mixed

__sleep()

Storage objects do not support serialization.

public __sleep() : mixed
Return values
mixed

close()

Close the backend.

public close() : mixed
Return values
mixed

destroy()

Destroy the data for a particular session identifier in the backend.

public destroy(mixed $id) : bool
Parameters
$id : mixed

The session identifier.

Return values
bool

True on success, false otherwise.

gc()

Garbage collect stale sessions from the backend.

public gc([mixed $maxlifetime = 300 ]) : bool
Parameters
$maxlifetime : mixed = 300

The maximum age of a session.

Return values
bool

True on success, false otherwise.

getSessionIDs()

Get a list of the valid session identifiers.

public getSessionIDs() : array<string|int, mixed>
Tags
throws
Horde_SessionHandler_Exception
Return values
array<string|int, mixed>

A list of valid session identifiers.

open()

Open the backend.

public open([mixed $save_path = null ][, mixed $session_name = null ]) : mixed
Parameters
$save_path : mixed = null

The path to the session object.

$session_name : mixed = null

The name of the session.

Return values
mixed

read()

Read the data for a particular session identifier from the backend.

public read(mixed $id) : string
Parameters
$id : mixed

The session identifier.

Return values
string

The session data.

setLogger()

Set the logger object.

public setLogger(Horde_Log_Logger $log) : mixed
Parameters
$log : Horde_Log_Logger
Tags
deprecated
Return values
mixed

write()

Write session data to the backend.

public write(mixed $id, mixed $session_data) : bool
Parameters
$id : mixed

The session identifier.

$session_data : mixed

The session data.

Return values
bool

True on success, false otherwise.

Search results