class FileSessionHandler implements SessionHandlerInterface (View source)

Properties

protected Filesystem $files The filesystem instance.
protected string $path The path where sessions should be stored.
protected int $minutes The number of minutes the session should be valid.

Methods

void
__construct(Filesystem $files, string $path, int $minutes)

Create a new file driven handler instance.

open($savePath, $sessionName)

{@inheritdoc}

close()

{@inheritdoc}

read($sessionId)

{@inheritdoc}

write($sessionId, $data)

{@inheritdoc}

destroy($sessionId)

{@inheritdoc}

gc($lifetime)

{@inheritdoc}

Details

void __construct(Filesystem $files, string $path, int $minutes)

Create a new file driven handler instance.

Parameters

Filesystem $files
string $path
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