\Horde_SessionHandler_Storage_Hashtable

Horde_HashTable SessionHandler driver.

Summary

Methods
Properties
Constants
__construct()
__sleep()
setLogger()
open()
close()
read()
write()
destroy()
gc()
getSessionIDs()
trackGC()
$readonly
No constants found
_getTrackIds()
$_params
$_hash
$_id
$_trackID
N/A
No private methods found
No private properties found
N/A

Properties

$readonly

$readonly : boolean

Access session read-only?

Type

boolean

$_params

$_params : array

Hash containing connection parameters.

Type

array

$_hash

$_hash : \Horde_HashTable

HashTable object.

Type

\Horde_HashTable

$_id

$_id : string

Current session ID.

Type

string

$_trackID

$_trackID : string

The ID used for session tracking.

Type

string

Methods

__construct()

__construct(array  $params = array()) 

Constructor.

Parameters

array $params

Parameters:

  - hashtable: (Horde_HashTable) [REQUIRED] A Horde_HashTable object.
  - track: (boolean) Track active sessions?

__sleep()

__sleep() 

Storage objects do not support serialization.

setLogger()

setLogger(\Horde_Log_Logger  $log) 

Set the logger object.

Parameters

\Horde_Log_Logger $log

open()

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

Open the backend.

Parameters

string $save_path

The path to the session object.

string $session_name

The name of the session.

close()

close() 

Close the backend.

read()

read(string  $id) : string

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

Parameters

string $id

The session identifier.

Returns

string —

The session data.

write()

write(string  $id, string  $session_data) : boolean

Write session data to the backend.

Parameters

string $id

The session identifier.

string $session_data

The session data.

Returns

boolean —

True on success, false otherwise.

destroy()

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().

Parameters

string $id

The session identifier.

Returns

boolean —

True on success, false otherwise.

gc()

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().

Parameters

integer $maxlifetime

The maximum age of a session.

Returns

boolean —

True on success, false otherwise.

getSessionIDs()

getSessionIDs() : array

Get a list of the valid session identifiers.

Returns

array —

A list of valid session identifiers.

trackGC()

trackGC() 

Do garbage collection for session tracking information.

_getTrackIds()

_getTrackIds() : array

Get the tracking IDs.

Returns

array —

Tracking IDs.