W3cubDocs

/Laravel 5.1

FileSessionHandler

class FileSessionHandler implements SessionHandlerInterface (View source)

Methods

void __construct( Filesystem $files, string $path)

Create a new file driven 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]}

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)

Parameters

$savePath
$sessionName

read($sessionId)

Parameters

$sessionId

write($sessionId, $data)

Parameters

$sessionId
$data

destroy($sessionId)

Parameters

$sessionId

gc($lifetime)

Parameters

$lifetime

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