class FileSessionHandler implements SessionHandlerInterface

Methods

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

Create a new file driven handler instance.

bool
open(string $savePath, string $sessionName)

No description

bool
close()

No description

false|string
read(string $sessionId)

No description

bool
write(string $sessionId, string $data)

No description

bool
destroy(string $sessionId)

No description

int
gc(int $lifetime)

No description

Details

at line 22
__construct(Filesystem $files, string $path, int $minutes)

Create a new file driven handler instance.

Parameters

Filesystem $files

the filesystem instance

string $path

the path where sessions should be stored

int $minutes

the number of minutes the session should be valid

at line 29
bool open(string $savePath, string $sessionName)

No description

Parameters

string $savePath
string $sessionName

Return Value

bool

at line 34
bool close()

No description

Return Value

bool

at line 39
false|string read(string $sessionId)

No description

Parameters

string $sessionId

Return Value

false|string

at line 54
bool write(string $sessionId, string $data)

No description

Parameters

string $sessionId
string $data

Return Value

bool

at line 59
bool destroy(string $sessionId)

No description

Parameters

string $sessionId

Return Value

bool

at line 66
int gc(int $lifetime)

No description

Parameters

int $lifetime

Return Value

int