PHP Класс Recca0120\LaravelTracy\SessionHandlerWrapper

Наследование: implements SessionHandlerInterfac\SessionHandlerInterface
Показать файл Открыть проект

Открытые методы

Метод Описание
__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.
С версии: 5.4.0
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.
С версии: 5.4.0
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.
С версии: 5.4.0
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.
С версии: 5.4.0
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.
С версии: 5.4.0
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.
С версии: 5.4.0
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.