SLP® phpDocs

RedisClusterSessionHandler
in package
implements SessionHandlerInterface

Table of Contents

Interfaces

SessionHandlerInterface

Properties

$redis  : mixed

Methods

__construct()  : mixed
close()  : bool
Close the session
destroy()  : bool
Destroy a session
gc()  : int|false
Cleanup old sessions
open()  : bool
Initialize session
read()  : string
Read session data
write()  : bool
Write session data

Properties

Methods

gc()

Cleanup old sessions

public gc(mixed $maxLifetime) : int|false
Parameters
$maxLifetime : mixed
Tags
link
https://php.net/manual/en/sessionhandlerinterface.gc.php
since
5.4
Return values
int|false

Returns the number of deleted sessions on success, or false on failure. Prior to PHP version 7.1, the function returned true on success. Note this value is returned internally to PHP for processing.

write()

Write session data

public write(mixed $sessionId, string $data) : bool
Parameters
$sessionId : mixed
$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.

Tags
link
https://php.net/manual/en/sessionhandlerinterface.write.php
since
5.4
Return values
bool

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


        
On this page

Search results