PHP Class Recca0120\LaravelTracy\SessionHandlerWrapper

Inheritance: implements SessionHandlerInterfac\SessionHandlerInterface
Afficher le fichier Open project: recca0120/laravel-tracy

Méthodes publiques

Méthode Description
__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.

Method Details

__construct() public méthode

public __construct ( SessionHandlerInterface $handler )
$handler SessionHandlerInterface

close() public méthode

Close the session.
public close ( ) : boolean
Résultat boolean

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

destroy() public méthode

Destroy a session.
public destroy ( string $sessionId ) : boolean
$sessionId string The session ID being destroyed.
Résultat boolean

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

gc() public méthode

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

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

Résultat boolean

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

open() public méthode

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

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

read() public méthode

Read session data.
public read ( string $sessionId ) : string
$sessionId string The session id to read data for.
Résultat 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() public méthode

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.

Résultat boolean

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