PHP 클래스 Horde_SessionHandler_Storage, horde

저자: Michael Slusarz ([email protected])
파일 보기 프로젝트 열기: horde/horde 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$readonly boolean Access session read-only?

보호된 프로퍼티들

프로퍼티 타입 설명
$_params array Hash containing connection parameters.

공개 메소드들

메소드 설명
__construct ( array $params = [] ) Constructor.
__sleep ( ) Storage objects do not support serialization.
close ( ) Close the backend.
destroy ( string $id ) : boolean Destroy the data for a particular session identifier in the backend.
gc ( integer $maxlifetime = 300 ) : boolean Garbage collect stale sessions from the backend.
getSessionIDs ( ) : array Get a list of the valid session identifiers.
open ( string $save_path = null, string $session_name = null ) Open the backend.
read ( string $id ) : string Read the data for a particular session identifier from the backend.
setLogger ( Horde_Log_Logger $log ) Set the logger object.
write ( string $id, string $session_data ) : boolean Write session data to the backend.

메소드 상세

__construct() 공개 메소드

Constructor.
public __construct ( array $params = [] )
$params array Configuration parameters.

__sleep() 공개 메소드

Storage objects do not support serialization.
public __sleep ( )

close() 추상적인 공개 메소드

Close the backend.
abstract public close ( )

destroy() 추상적인 공개 메소드

This method should only be called internally by PHP via session_set_save_handler().
abstract public destroy ( string $id ) : boolean
$id string The session identifier.
리턴 boolean True on success, false otherwise.

gc() 추상적인 공개 메소드

This method should only be called internally by PHP via session_set_save_handler().
abstract public gc ( integer $maxlifetime = 300 ) : boolean
$maxlifetime integer The maximum age of a session.
리턴 boolean True on success, false otherwise.

getSessionIDs() 추상적인 공개 메소드

Get a list of the valid session identifiers.
abstract public getSessionIDs ( ) : array
리턴 array A list of valid session identifiers.

open() 추상적인 공개 메소드

Open the backend.
abstract public open ( string $save_path = null, string $session_name = null )
$save_path string The path to the session object.
$session_name string The name of the session.

read() 추상적인 공개 메소드

Read the data for a particular session identifier from the backend.
abstract public read ( string $id ) : string
$id string The session identifier.
리턴 string The session data.

setLogger() 공개 메소드

Set the logger object.
사용 중단:
public setLogger ( Horde_Log_Logger $log )
$log Horde_Log_Logger

write() 추상적인 공개 메소드

Write session data to the backend.
abstract public write ( string $id, string $session_data ) : boolean
$id string The session identifier.
$session_data string The session data.
리턴 boolean True on success, false otherwise.

프로퍼티 상세

$_params 보호되어 있는 프로퍼티

Hash containing connection parameters.
protected array $_params
리턴 array

$readonly 공개적으로 프로퍼티

Access session read-only?
public bool $readonly
리턴 boolean