class DatabaseSessionHandler implements SessionHandlerInterface, ExistenceAwareInterface (View source)

Methods

void
__construct( ConnectionInterface $connection, string $table, Container $container = null)

Create a new database session handler instance.

open($savePath, $sessionName)

{@inheritdoc}

close()

{@inheritdoc}

read($sessionId)

{@inheritdoc}

write($sessionId, $data)

{@inheritdoc}

destroy($sessionId)

{@inheritdoc}

gc($lifetime)

{@inheritdoc}

setExists( bool $value)

Set the existence state for the session.

Details

at line line 48
void __construct( ConnectionInterface $connection, string $table, Container $container = null)

Create a new database session handler instance.

Parameters

ConnectionInterface $connection
string $table
Container $container

Return Value

void

at line line 58
open($savePath, $sessionName)

{@inheritdoc}

Parameters

$savePath
$sessionName

at line line 66
close()

{@inheritdoc}

at line line 74
read($sessionId)

{@inheritdoc}

Parameters

$sessionId

at line line 88
write($sessionId, $data)

{@inheritdoc}

Parameters

$sessionId
$data

at line line 139
destroy($sessionId)

{@inheritdoc}

Parameters

$sessionId

at line line 147
gc($lifetime)

{@inheritdoc}

Parameters

$lifetime

at line line 168
SessionHandlerInterface setExists( bool $value)

Set the existence state for the session.

Parameters

bool $value

Return Value

SessionHandlerInterface