RedisSessionHandler

final class \TYPO3\CMS\Install\Service\Session\RedisSessionHandler

Implements
SessionHandlerInterface

Table of Contents

Interfaces

SessionHandlerInterface

Methods

__construct()  : mixed
close()  : bool
create_sid()  : string
destroy()  : bool
gc()  : int
getSessionId()  : string|false
Returns the session ID of the running session.
open()  : bool
read()  : string
validateId()  : bool
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

create_sid()

public create_sid() : string

Return values

string

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

validateId()

public validateId(string $id) : bool

Parameters

$id : string

Return values

bool

write()

public write(string $id, string $data) : bool

Parameters

$id : string
$data : string

Tags

throws
Exception

Return values

bool
On this page