AbstractSessionHandler
in package
implements
SessionHandlerInterface, SessionUpdateTimestampHandlerInterface
This abstract session handler provides a generic implementation of the PHP 7.0 SessionUpdateTimestampHandlerInterface, enabling strict and lazy session handling.
Tags
Interfaces, Classes and Traits
- SessionHandlerInterface
- SessionUpdateTimestampHandlerInterface
Table of Contents
- $igbinaryEmptyData : mixed
- $newSessionId : mixed
- $prefetchData : mixed
- $prefetchId : mixed
- $sessionName : mixed
- destroy() : bool
- open() : bool
- read() : string
- validateId() : bool
- write() : bool
- doDestroy() : bool
- doRead() : string
- doWrite() : bool
Properties
$igbinaryEmptyData
private
mixed
$igbinaryEmptyData
$newSessionId
private
mixed
$newSessionId
$prefetchData
private
mixed
$prefetchData
$prefetchId
private
mixed
$prefetchId
$sessionName
private
mixed
$sessionName
Methods
destroy()
public
destroy(mixed $sessionId) : bool
Parameters
- $sessionId : mixed
Return values
bool —open()
public
open(mixed $savePath, mixed $sessionName) : bool
Parameters
- $savePath : mixed
- $sessionName : mixed
Return values
bool —read()
public
read(mixed $sessionId) : string
Parameters
- $sessionId : mixed
Return values
string —validateId()
public
validateId(mixed $sessionId) : bool
Parameters
- $sessionId : mixed
Return values
bool —write()
public
write(mixed $sessionId, mixed $data) : bool
Parameters
- $sessionId : mixed
- $data : mixed
Return values
bool —doDestroy()
protected
abstract doDestroy(string $sessionId) : bool
Parameters
- $sessionId : string
Return values
bool —doRead()
protected
abstract doRead(string $sessionId) : string
Parameters
- $sessionId : string
Return values
string —doWrite()
protected
abstract doWrite(string $sessionId, string $data) : bool
Parameters
- $sessionId : string
- $data : string