class CacheBasedSessionHandler implements SessionHandlerInterface

Methods

__construct(Repository $cache, int $minutes)

Create a new cache driven handler instance.

bool
open(string $savePath, string $sessionName)

No description

bool
close()

No description

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

getCache()

Get the underlying cache repository.

Details

at line 18
__construct(Repository $cache, int $minutes)

Create a new cache driven handler instance.

Parameters

Repository $cache

the cache repository instance

int $minutes

the number of minutes to store the data in the cache

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

No description

Parameters

string $savePath
string $sessionName

Return Value

bool

at line 29
bool close()

No description

Return Value

bool

at line 34
string read(string $sessionId)

No description

Parameters

string $sessionId

Return Value

string

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

No description

Parameters

string $sessionId
string $data

Return Value

bool

at line 44
bool destroy(string $sessionId)

No description

Parameters

string $sessionId

Return Value

bool

at line 49
int gc(int $lifetime)

No description

Parameters

int $lifetime

Return Value

int

at line 57
Repository getCache()

Get the underlying cache repository.

Return Value

Repository