Methods
Constructor
__construct(\Zend\Cache\Storage\StorageInterface $cacheStorage)
Close session
close() : bool
Destroy session
destroy(string $id) : bool
Parameters
$id
string
Returns
bool
Garbage Collection
gc(int $maxlifetime) : bool
Parameters
$maxlifetime
int
Returns
bool
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
Write session data
write(string $id, string $data) : bool
Parameters
$id
string
$data
string
Returns
bool
Properties
Session Name
$sessionName : string
Session Save Path
$sessionSavePath : string