Cache session save handler

 Methods

Constructor

__construct(\Zend\Cache\Storage\StorageInterface $cacheStorage) 

Parameters

Close session

close() : bool

Returns

bool

Destroy session

destroy(string $id) : bool

Parameters

$id

string

Returns

bool

Garbage Collection

gc(int $maxlifetime) : bool

Parameters

$maxlifetime

int

Returns

bool

Get cache storage

getCacheStorage() : \Zend\Cache\Storage\StorageInterface

getCacheStorge()

getCacheStorge() 

deprecated Misspelled method - use getCacheStorage() instead

Open Session

open(string $savePath, string $name) : bool

Parameters

$savePath

string

$name

string

Returns

bool

Read session data

read(string $id) : string

Parameters

$id

string

Returns

string

Set cache storage

setCacheStorage(\Zend\Cache\Storage\StorageInterface $cacheStorage) : \Zend\Session\SaveHandler\Cache

Write session data

write(string $id, string $data) : bool

Parameters

$id

string

$data

string

Returns

bool

 Properties

 

The cache storage

$cacheStorage : \Zend\Cache\Storage\StorageInterface

 

Session Name

$sessionName : string

 

Session Save Path

$sessionSavePath : string