Cache session save handler

package Default

 Methods

Constructor

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

Parameters

$cacheStorage

\Zend\Cache\Storage\StorageInterface

Close session

close() : boolean
inherited_from \Zend\Session\SaveHandler\SaveHandlerInterface::close()

Returns

boolean

Destroy session

destroy(string $id) : boolean
inherited_from \Zend\Session\SaveHandler\SaveHandlerInterface::destroy()

Parameters

$id

string

Returns

boolean

Garbage Collection

gc(integer $maxlifetime) : boolean
inherited_from \Zend\Session\SaveHandler\SaveHandlerInterface::gc()

Parameters

$maxlifetime

integer

Returns

boolean

Get cache storage

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

Returns

\Zend\Cache\Storage\StorageInterface

getCacheStorge()

getCacheStorge() 
deprecated Misspelled method - use getCacheStorage() instead

Open Session

open(string $savePath, string $name) : boolean
inherited_from \Zend\Session\SaveHandler\SaveHandlerInterface::open()

Parameters

$savePath

string

$name

string

Returns

boolean

Read session data

read(string $id) : string
inherited_from \Zend\Session\SaveHandler\SaveHandlerInterface::read()

Parameters

$id

string

Returns

string

Set cache storage

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

Parameters

$cacheStorage

\Zend\Cache\Storage\StorageInterface

Returns

\Zend\Session\SaveHandler\Cache

Write session data

write(string $id, string $data) : boolean
inherited_from \Zend\Session\SaveHandler\SaveHandlerInterface::write()

Parameters

$id

string

$data

string

Returns

boolean

 Properties

 

The cache storage

$cacheStorage : \Zend\Cache\Storage\StorageInterface

Default

 

Session Name

$sessionName : string

Default

 

Session Save Path

$sessionSavePath : string

Default