PHP 클래스 Recca0120\LaravelTracy\SessionHandlerWrapper

상속: implements SessionHandlerInterfac\SessionHandlerInterface
파일 보기 프로젝트 열기: recca0120/laravel-tracy

공개 메소드들

메소드 설명
__construct ( SessionHandlerInterface $handler )
close ( ) : boolean Close the session.
destroy ( string $sessionId ) : boolean Destroy a session.
gc ( integer $maxLifeTime ) : boolean Cleanup old sessions.
open ( string $savePath, string $name ) : boolean Initialize session.
read ( string $sessionId ) : string Read session data.
write ( string $sessionId, string $session_data ) : boolean Write session data.

메소드 상세

__construct() 공개 메소드

public __construct ( SessionHandlerInterface $handler )
$handler SessionHandlerInterface

close() 공개 메소드

Close the session.
public close ( ) : boolean
리턴 boolean

The return value (usually TRUE on success, FALSE on failure). Note this value is returned internally to PHP for processing.

destroy() 공개 메소드

Destroy a session.
public destroy ( string $sessionId ) : boolean
$sessionId string The session ID being destroyed.
리턴 boolean

The return value (usually TRUE on success, FALSE on failure). Note this value is returned internally to PHP for processing.

gc() 공개 메소드

Cleanup old sessions.
public gc ( integer $maxLifeTime ) : boolean
$maxLifeTime integer

Sessions that have not updated for the last maxlifetime seconds will be removed.

리턴 boolean

The return value (usually TRUE on success, FALSE on failure). Note this value is returned internally to PHP for processing.

open() 공개 메소드

Initialize session.
public open ( string $savePath, string $name ) : boolean
$savePath string The path where to store/retrieve the session.
$name string The session name.
리턴 boolean

The return value (usually TRUE on success, FALSE on failure). Note this value is returned internally to PHP for processing.

read() 공개 메소드

Read session data.
public read ( string $sessionId ) : string
$sessionId string The session id to read data for.
리턴 string

Returns an encoded string of the read data. If nothing was read, it must return an empty string. Note this value is returned internally to PHP for processing.

write() 공개 메소드

Write session data.
public write ( string $sessionId, string $session_data ) : boolean
$sessionId string The session id.
$session_data string

The encoded session data. This data is the result of the PHP internally encoding the $_SESSION superglobal to a serialized string and passing it as this parameter. Please note sessions use an alternative serialization method.

리턴 boolean

The return value (usually TRUE on success, FALSE on failure). Note this value is returned internally to PHP for processing.