Spec-Zone.ru › Symfony 3.4

DbalSessionHandler устаревший

class DbalSessionHandler implements 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/3.4/Symfony/Bridge/Doctrine/HttpFoundation/DbalSessionHandler.html

Spec-Zone.ru

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