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.
__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} |
SessionHandlerInterface | $currentHandler | |
SessionHandlerInterface | $writeOnlyHandler |
{@inheritdoc}
{@inheritdoc}
$sessionId |
{@inheritdoc}
$maxlifetime |
{@inheritdoc}
$savePath | ||
$sessionName |
{@inheritdoc}
$sessionId |
{@inheritdoc}
$sessionId | ||
$sessionData |
{@inheritdoc}
$sessionId |
{@inheritdoc}
$sessionId | ||
$sessionData |
© 2004–2017 Fabien Potencier
Licensed under the MIT License.
https://api.symfony.com/4.1/Symfony/Component/HttpFoundation/Session/Storage/Handler/MigratingSessionHandler.html