FileSessionHandler
in package
implements
SessionHandlerInterface
Interfaces, Classes and Traits
- SessionHandlerInterface
Table of Contents
- $files : Filesystem
- The filesystem instance.
- $minutes : int
- The number of minutes the session should be valid.
- $path : string
- The path where sessions should be stored.
- __construct() : void
- Create a new file driven handler instance.
- close() : mixed
- {@inheritdoc}
- destroy() : mixed
- {@inheritdoc}
- gc() : mixed
- {@inheritdoc}
- open() : mixed
- {@inheritdoc}
- read() : mixed
- {@inheritdoc}
- write() : mixed
- {@inheritdoc}
Properties
$files
The filesystem instance.
protected
Filesystem
$files
$minutes
The number of minutes the session should be valid.
protected
int
$minutes
$path
The path where sessions should be stored.
protected
string
$path
Methods
__construct()
Create a new file driven handler instance.
public
__construct(Filesystem $files, string $path, int $minutes) : void
Parameters
- $files : Filesystem
- $path : string
- $minutes : int
Return values
void —close()
{@inheritdoc}
public
close() : mixed
Return values
mixed —destroy()
{@inheritdoc}
public
destroy(mixed $sessionId) : mixed
Parameters
- $sessionId : mixed
Return values
mixed —gc()
{@inheritdoc}
public
gc(mixed $lifetime) : mixed
Parameters
- $lifetime : mixed
Return values
mixed —open()
{@inheritdoc}
public
open(mixed $savePath, mixed $sessionName) : mixed
Parameters
- $savePath : mixed
- $sessionName : mixed
Return values
mixed —read()
{@inheritdoc}
public
read(mixed $sessionId) : mixed
Parameters
- $sessionId : mixed
Return values
mixed —write()
{@inheritdoc}
public
write(mixed $sessionId, mixed $data) : mixed
Parameters
- $sessionId : mixed
- $data : mixed