DatabaseSessionHandler (Session)

DatabaseSessionHandler

class DatabaseSessionHandler implements SessionHandlerInterface, ExistenceAwareInterface (View source)

Methods

void __construct( ConnectionInterface $connection, string $table)

Create a new database session handler instance.

open($savePath, $sessionName)

[email protected]}

close()

[email protected]}

read($sessionId)

[email protected]}

write($sessionId, $data)

[email protected]}

destroy($sessionId)

[email protected]}

gc($lifetime)

[email protected]}

SessionHandlerInterface setExists( bool $value)

Set the existence state for the session.

Details

void __construct( ConnectionInterface $connection, string $table)

Create a new database session handler instance.

Parameters

ConnectionInterface $connection
string $table

Return Value

void

open($savePath, $sessionName)

Parameters

$savePath
$sessionName

read($sessionId)

Parameters

$sessionId

write($sessionId, $data)

Parameters

$sessionId
$data

destroy($sessionId)

Parameters

$sessionId

gc($lifetime)

Parameters

$lifetime

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.1/Illuminate/Session/DatabaseSessionHandler.html

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部