RedisSessionHandler implements SessionHandlerInterface
FinalYes
Table of Contents
Interfaces
- SessionHandlerInterface
Methods
- __construct() : mixed
- close() : bool
- destroy() : bool
- gc() : int
- getSessionId() : string|false
- Returns the session ID of the running session.
- open() : bool
- read() : string
- write() : bool
Methods
__construct()
public
__construct(int $expirationTimeInMinutes[, string $host = '127.0.0.1' ][, int $port = 6379 ][, int $database = 0 ][, array{user?: string, pass?: string} $authentication = [] ]) : mixed
Parameters
- $expirationTimeInMinutes : int
- $host : string = '127.0.0.1'
- $port : int = 6379
- $database : int = 0
- $authentication : array{user?: string, pass?: string} = []
close()
public
close() : bool
Return values
booldestroy()
public
destroy(string $id) : bool
Parameters
- $id : string
Tags
Return values
boolgc()
public
gc(int $max_lifetime) : int
Parameters
- $max_lifetime : int
Return values
intgetSessionId()
Returns the session ID of the running session.
public
getSessionId() : string|false
Return values
string|falseopen()
public
open(string $path, string $name) : bool
Parameters
- $path : string
- $name : string
Return values
boolread()
public
read(string $id) : string
Parameters
- $id : string
Tags
Return values
stringwrite()
public
write(string $id, string $data) : bool
Parameters
- $id : string
- $data : string