W3cubDocs

/Symfony 4.1

MigratingSessionHandler

class MigratingSessionHandler implements SessionHandlerInterface, SessionUpdateTimestampHandlerInterface

Migrating session handler for migrating from one handler to another. It reads from the current handler and writes both the current and new ones.

It ignores errors from the new handler.

Methods

__construct(SessionHandlerInterface $currentHandler, SessionHandlerInterface $writeOnlyHandler)
close()

{@inheritdoc}

destroy($sessionId)

{@inheritdoc}

gc($maxlifetime)

{@inheritdoc}

open($savePath, $sessionName)

{@inheritdoc}

read($sessionId)

{@inheritdoc}

write($sessionId, $sessionData)

{@inheritdoc}

validateId($sessionId)

{@inheritdoc}

updateTimestamp($sessionId, $sessionData)

{@inheritdoc}

Details

__construct(SessionHandlerInterface $currentHandler, SessionHandlerInterface $writeOnlyHandler)

Parameters

SessionHandlerInterface $currentHandler
SessionHandlerInterface $writeOnlyHandler

close()

{@inheritdoc}

destroy($sessionId)

{@inheritdoc}

Parameters

$sessionId

gc($maxlifetime)

{@inheritdoc}

Parameters

$maxlifetime

open($savePath, $sessionName)

{@inheritdoc}

Parameters

$savePath
$sessionName

read($sessionId)

{@inheritdoc}

Parameters

$sessionId

write($sessionId, $sessionData)

{@inheritdoc}

Parameters

$sessionId
$sessionData

validateId($sessionId)

{@inheritdoc}

Parameters

$sessionId

updateTimestamp($sessionId, $sessionData)

{@inheritdoc}

Parameters

$sessionId
$sessionData