W3cubDocs

/Symfony 4.1

StrictSessionHandler

class StrictSessionHandler extends AbstractSessionHandler

Adds basic SessionUpdateTimestampHandlerInterface behaviors to another SessionHandlerInterface.

Methods

open($savePath, $sessionName)

{@inheritdoc}

string doRead(string $sessionId)
bool doWrite(string $sessionId, string $data)
bool doDestroy(string $sessionId)
validateId($sessionId)

{@inheritdoc}

from AbstractSessionHandler
read($sessionId)

{@inheritdoc}

from AbstractSessionHandler
write($sessionId, $data)

{@inheritdoc}

from AbstractSessionHandler
destroy($sessionId)

{@inheritdoc}

__construct(SessionHandlerInterface $handler)
updateTimestamp($sessionId, $data)

{@inheritdoc}

close()

{@inheritdoc}

gc($maxlifetime)

{@inheritdoc}

Details

open($savePath, $sessionName)

{@inheritdoc}

Parameters

$savePath
$sessionName

protected string doRead(string $sessionId)

Parameters

string $sessionId

Return Value

string

protected bool doWrite(string $sessionId, string $data)

Parameters

string $sessionId
string $data

Return Value

bool

protected bool doDestroy(string $sessionId)

Parameters

string $sessionId

Return Value

bool

validateId($sessionId)

{@inheritdoc}

Parameters

$sessionId

read($sessionId)

{@inheritdoc}

Parameters

$sessionId

write($sessionId, $data)

{@inheritdoc}

Parameters

$sessionId
$data

destroy($sessionId)

{@inheritdoc}

Parameters

$sessionId

__construct(SessionHandlerInterface $handler)

Parameters

SessionHandlerInterface $handler

updateTimestamp($sessionId, $data)

{@inheritdoc}

Parameters

$sessionId
$data

close()

{@inheritdoc}

gc($maxlifetime)

{@inheritdoc}

Parameters

$maxlifetime