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')
Параметры
| 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