Spec-Zone.ru › Symfony 4.1

MigratingSessionHandler

class MigratingSessionHandler implements SessionHandlerInterface, SessionUpdateTimestampHandlerInterface

Обработчик сессий для миграции с одного обработчика на другой. Он читает данные из текущего обработчика и записывает как текущие, так и новые.

Он игнорирует ошибки нового обработчика.

Методы

__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}

Подробности

__construct(SessionHandlerInterface $currentHandler, SessionHandlerInterface $writeOnlyHandler)

Параметры

SessionHandlerInterface $currentHandler
SessionHandlerInterface $writeOnlyHandler

close()

{@inheritdoc}

destroy($sessionId)

{@inheritdoc}

Параметры

$sessionId

gc($maxlifetime)

{@inheritdoc}

Параметры

$maxlifetime

open($savePath, $sessionName)

{@inheritdoc}

Параметры

$savePath
$sessionName

read($sessionId)

{@inheritdoc}

Параметры

$sessionId

write($sessionId, $sessionData)

{@inheritdoc}

Параметры

$sessionId
$sessionData

validateId($sessionId)

{@inheritdoc}

Параметры

$sessionId

updateTimestamp($sessionId, $sessionData)

{@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

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API