FileSessionHandler

class FileSessionHandler implements SessionHandlerInterface (View source)

Properties

protected Filesystem $files The filesystem instance.
protected string $path The path where sessions should be stored.

Methods

void __construct(Filesystem $files, string $path)

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)

Create a new file driven handler instance.

Parameters

Filesystem $files
string $path

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

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