LaravelSessionDriversFile

Summary

No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
N/A
File
sessiondriversile.php
Package
Default
Class hierarchy
LaravelSessionDriversFile
Implements
LaravelSessionDriversSweeper

Tags

None found

Properties

$path

$path : string

The path to which the session files should be written.

Type

string

Tags

None found

Methods

load()

load(string  $id) : array

Load a session from storage by a given ID.

If no session is found for the ID, null will be returned.

Parameters

string $id

Returns

array

Tags

None found

save()

save(array  $session, array  $config, boolean  $exists) : void

Save a given session to storage.

Parameters

array $session
array $config
boolean $exists

Tags

None found

delete()

delete(string  $id) : void

Delete a session from storage by a given ID.

Parameters

string $id

Tags

None found

fresh()

fresh() : array

Create a fresh session array with a unique ID.

Returns

array

Inherited from
LaravelSessionDriversDriver

Tags

None found

id()

id() : string

Get a new session ID that isn't assigned to any current session.

Returns

string

Inherited from
LaravelSessionDriversDriver

Tags

None found

__construct()

__construct(string  $path) : void

Create a new File session driver instance.

Parameters

string $path

Tags

None found

sweep()

sweep(integer  $expiration) : void

Delete all expired sessions from persistent storage.

Parameters

integer $expiration

Tags

None found