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 32
open($savePath, $sessionName)

{@inheritdoc}

Parameters

$savePath
$sessionName

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

Parameters

string $sessionId

Return Value

string

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

Parameters

string $sessionId
string $data

Return Value

bool

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

Parameters

string $sessionId

Return Value

bool

at line 67
validateId($sessionId)

{@inheritdoc}

Parameters

$sessionId

at line 78
read($sessionId)

{@inheritdoc}

Parameters

$sessionId

at line 104
write($sessionId, $data)

{@inheritdoc}

Parameters

$sessionId
$data

at line 129
destroy($sessionId)

{@inheritdoc}

Parameters

$sessionId