LegacyDatabaseSessionHandler deprecated

class LegacyDatabaseSessionHandler implements SessionHandlerInterface, ExistenceAwareInterface (View source)

deprecated

since version 5.2. Use Illuminate\Session\DatabaseSessionHandler.

Properties

protected ConnectionInterface $connection The database connection instance.
protected string $table The name of the session table.
protected $minutes
protected bool $exists The existence state of the session.

Methods

void __construct(ConnectionInterface $connection, string $table, int $minutes)

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}

Builder getQuery()

Get a fresh query builder instance for the table.

SessionHandlerInterface setExists(bool $value)

Set the existence state for the session.

Details

void __construct(ConnectionInterface $connection, string $table, int $minutes)

Create a new database session handler instance.

Parameters

ConnectionInterface $connection
string $table
int $minutes

Return Value

void

open($savePath, $sessionName)

{@inheritdoc}

Parameters

$savePath
$sessionName

close()

{@inheritdoc}

read($sessionId)

{@inheritdoc}

Parameters

$sessionId

write($sessionId, $data)

{@inheritdoc}

Parameters

$sessionId
$data

destroy($sessionId)

{@inheritdoc}

Parameters

$sessionId

gc($lifetime)

{@inheritdoc}

Parameters

$lifetime

protected Builder getQuery()

Get a fresh query builder instance for the table.

Return Value

Builder

SessionHandlerInterface setExists(bool $value)

Set the existence state for the session.

Parameters

bool $value

Return Value

SessionHandlerInterface

© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/5.2/Illuminate/Session/LegacyDatabaseSessionHandler.html