DbalSessionHandler deprecated
class DbalSessionHandler implements SessionHandlerInterface
deprecated
DBAL based session storage.
This implementation is very similar to Symfony\Component\HttpFoundation\Session\Storage\Handler\PdoSessionHandler but uses a Doctrine connection and thus also works with non-PDO-based drivers like mysqli and OCI8.
Methods
__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} |
Details
__construct(Connection $con, string $tableName = 'sessions')
Parameters
Connection | $con | A connection |
string | $tableName | Table name |
open($savePath, $sessionName)
{@inheritdoc}
Parameters
$savePath | ||
$sessionName |
close()
{@inheritdoc}
destroy($sessionId)
{@inheritdoc}
Parameters
$sessionId |
gc($maxlifetime)
{@inheritdoc}
Parameters
$maxlifetime |
read($sessionId)
{@inheritdoc}
Parameters
$sessionId |
write($sessionId, $data)
{@inheritdoc}
Parameters
$sessionId | ||
$data |
© 2004–2017 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/4.0/Symfony/Bridge/Doctrine/HttpFoundation/DbalSessionHandler.html