Overview

Packages

  • SessionHandler

Classes

  • Horde_SessionHandler
  • Horde_SessionHandler_Exception
  • Horde_SessionHandler_Storage
  • Horde_SessionHandler_Storage_Builtin
  • Horde_SessionHandler_Storage_External
  • Horde_SessionHandler_Storage_File
  • Horde_SessionHandler_Storage_Memcache
  • Horde_SessionHandler_Storage_Sql
  • Horde_SessionHandler_Storage_Stack
  • Overview
  • Package
  • Class
  • Tree

Class Horde_SessionHandler_Storage_Stack

SessionHandler storage implementation that will loop through a list of storage drivers to handle the session information. This driver allows for use of caching backends on top of persistent backends, for example.

Copyright 2010-2012 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.

Horde_SessionHandler_Storage
Extended by Horde_SessionHandler_Storage_Stack
Package: SessionHandler
Category: Horde
License: LGPL 2.1
Author: Michael Slusarz slusarz@horde.org
Located at Horde/SessionHandler/Storage/Stack.php
Methods summary
public
# __construct( array $params = array() )

Constructor.

Constructor.

Parameters

$params
Parameters: <pre>stack - (<span class="php-keyword1">array</span>) [REQUIRED] A <span class="php-keyword1">list</span> of storage objects to loop through, in order of priority. The last entry is considered the <span class="php-quote">&quot;master&quot;</span> server.</pre>

Throws

InvalidArgumentException

Overrides

Horde_SessionHandler_Storage::__construct()
public
# setLogger( Horde_Log_Logger $log )

Set the logger object.

Set the logger object.

Parameters

$log
The logger instance.

Overrides

Horde_SessionHandler_Storage::setLogger()
public
# open( string $save_path = null, string $session_name = null )

Parameters

$save_path
The path to the session object.
$session_name
The name of the session.

Throws

Horde_SessionHandler_Exception
public
# close( )

Throws

Horde_SessionHandler_Exception
public string
# read( string $id )

Parameters

$id
The session identifier.

Returns

string
The session data.
public boolean
# write( string $id, string $session_data )

Parameters

$id
The session identifier.
$session_data
The session data.

Returns

boolean
True on success, false otherwise.
public boolean
# destroy( string $id )

Parameters

$id
The session identifier.

Returns

boolean
True on success, false otherwise.
public boolean
# gc( integer $maxlifetime = 300 )

Parameters

$maxlifetime
The maximum age of a session.

Returns

boolean
True on success, false otherwise.
public array
# getSessionIDs( )

Returns

array
A list of valid session identifiers.

Throws

Horde_SessionHandler_Exception
Properties inherited from Horde_SessionHandler_Storage
$readonly
API documentation generated by ApiGen