PHP Class Recca0120\LaravelTracy\SessionHandlerWrapper

Inheritance: implements SessionHandlerInterfac\SessionHandlerInterface
Exibir arquivo Open project: recca0120/laravel-tracy

Public Methods

Method 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 method

public __construct ( SessionHandlerInterface $handler )
$handler SessionHandlerInterface

close() public method

Close the session.
public close ( ) : boolean
return boolean

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

destroy() public method

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

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

gc() public method

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

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

return boolean

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

open() public method

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

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

read() public method

Read session data.
public read ( string $sessionId ) : string
$sessionId string The session id to read data for.
return 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 method

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.

return boolean

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