abstract class AbstractSessionHandler implements SessionHandlerInterface, SessionUpdateTimestampHandlerInterface

This abstract session handler provides a generic implementation of the PHP 7.0 SessionUpdateTimestampHandlerInterface, enabling strict and lazy session handling.

Methods

open($savePath, $sessionName)

{@inheritdoc}

string
doRead(string $sessionId)

No description

bool
doWrite(string $sessionId, string $data)

No description

bool
doDestroy(string $sessionId)

No description

validateId($sessionId)

{@inheritdoc}

read($sessionId)

{@inheritdoc}

write($sessionId, $data)

{@inheritdoc}

destroy($sessionId)

{@inheritdoc}

Details

at line 34
open($savePath, $sessionName)

{@inheritdoc}

Parameters

$savePath
$sessionName

at line 49
abstract protected string doRead(string $sessionId)

Parameters

string $sessionId

Return Value

string

at line 57
abstract protected bool doWrite(string $sessionId, string $data)

Parameters

string $sessionId
string $data

Return Value

bool

at line 64
abstract protected bool doDestroy(string $sessionId)

Parameters

string $sessionId

Return Value

bool

at line 69
validateId($sessionId)

{@inheritdoc}

Parameters

$sessionId

at line 80
read($sessionId)

{@inheritdoc}

Parameters

$sessionId

at line 103
write($sessionId, $data)

{@inheritdoc}

Parameters

$sessionId
$data

at line 120
destroy($sessionId)

{@inheritdoc}

Parameters

$sessionId