Spec-Zone.ru › Symfony 2.7

DbalSessionHandler

class DbalSessionHandler implements SessionHandlerInterface

Хранение сессий на основе 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')

Параметры

Подключение $con Подключение
строка $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/2.7/Symfony/Bridge/Doctrine/HttpFoundation/DbalSessionHandler.html

Spec-Zone.ru

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