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
bool

destroy()

public destroy(string $id) : bool
Parameters
$id : string
Tags
throws
Exception
Return values
bool

gc()

public gc(int $max_lifetime) : int
Parameters
$max_lifetime : int
Return values
int

getSessionId()

Returns the session ID of the running session.

public getSessionId() : string|false
Return values
string|false

open()

public open(string $path, string $name) : bool
Parameters
$path : string
$name : string
Return values
bool

read()

public read(string $id) : string
Parameters
$id : string
Tags
throws
Exception
Return values
string

write()

public write(string $id, string $data) : bool
Parameters
$id : string
$data : string
Tags
throws
Exception
Return values
bool

        
On this page

Search results