Spec-Zone.ru › Symfony 4.0

DbalSessionHandler устаревший

класс DbalSessionHandler реализует SessionHandlerInterface

устаревший

since версия 3.4, будет удалена в версии 4.0. Используйте Symfony\Component\HttpFoundation\Session\Storage\Handler\PdoSessionHandler вместо этого.

Хранилище сессий на базе DBAL.

Эта реализация очень похожа на Symfony\Component\HttpFoundation\Session\Storage\Handler\PdoSessionHandler, но использует соединение Doctrine и, следовательно, также работает с драйверами, не основанными на PDO, такими как mysqli и OCI8.

Методы

__construct(Connection $con, string $tableName = 'sessions')
open($savePath, $sessionName)

{@inheritdoc}

close()

{@inheritdoc}

destroy($sessionId)

{@inheritdoc}

gc($maxlifetime)

{@inheritdoc}

read($sessionId)

{@inheritdoc}

write($sessionId, $data)

{@inheritdoc}

Подробности

__construct(Connection $con, string $tableName = 'sessions')

Параметры

Connection $con Соединение
string $tableName Имя таблицы

open($savePath, $sessionName)

{@inheritdoc}

Параметры

$savePath
$sessionName

close()

{@inheritdoc}

destroy($sessionId)

{@inheritdoc}

Параметры

$sessionId

gc($maxlifetime)

{@inheritdoc}

Параметры

$maxlifetime

read($sessionId)

{@inheritdoc}

Параметры

$sessionId

write($sessionId, $data)

{@inheritdoc}

Параметры

$sessionId
$data

© 2004–2017 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/4.0/Symfony/Bridge/Doctrine/HttpFoundation/DbalSessionHandler.html

Spec-Zone.ru

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