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

string
create_sid()

Create a new session ID.

bool
validateId(string $id)

Determine if the session ID exists.

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 23
__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 30
bool open(string $savePath, string $sessionName)

No description

Parameters

string $savePath
string $sessionName

Return Value

bool

at line 35
bool close()

No description

Return Value

bool

at line 43
string create_sid()

Create a new session ID.

Return Value

string

at line 51
bool validateId(string $id)

Determine if the session ID exists.

Parameters

string $id

Return Value

bool

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

No description

Parameters

string $sessionId

Return Value

false|string

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

No description

Parameters

string $sessionId
string $data

Return Value

bool

at line 76
bool destroy(string $sessionId)

No description

Parameters

string $sessionId

Return Value

bool

at line 83
int gc(int $lifetime)

No description

Parameters

int $lifetime

Return Value

int