class DbalSessionHandler implements SessionHandlerInterface

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')

No description

open($savePath, $sessionName)

{@inheritdoc}

close()

{@inheritdoc}

destroy($sessionId)

{@inheritdoc}

gc($maxlifetime)

{@inheritdoc}

read($sessionId)

{@inheritdoc}

write($sessionId, $data)

{@inheritdoc}

Details

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

Parameters

Connection $con A connection
string $tableName Table name

at line 69
open($savePath, $sessionName)

{@inheritdoc}

Parameters

$savePath
$sessionName

at line 77
close()

{@inheritdoc}

at line 85
destroy($sessionId)

{@inheritdoc}

Parameters

$sessionId

at line 104
gc($maxlifetime)

{@inheritdoc}

Parameters

$maxlifetime

at line 123
read($sessionId)

{@inheritdoc}

Parameters

$sessionId

at line 148
write($sessionId, $data)

{@inheritdoc}

Parameters

$sessionId
$data