CacheSession provides method for saving sessions into a Cache engine. Used with Session
$_options
protected array
__construct( array $config [] )
Constructor.
$config
optional [] The configuration to use for this engine It requires the key 'config' which is the name of the Cache config to use for storing the session
close( )
Method called on close of a database session.
SessionHandlerInterface::close()
destroy( integer $id )
Method called on the destruction of a cache session.
$id
SessionHandlerInterface::destroy()
gc( string $maxlifetime )
Helper function called on gc for cache sessions.
$maxlifetime
SessionHandlerInterface::gc()
open( string $savePath , string $name )
Method called on open of a database session.
$savePath
$name
SessionHandlerInterface::open()
read( string $id )
Method used to read from a cache session.
$id
SessionHandlerInterface::read()
write( integer $id , mixed $data )
Helper function called on write for cache sessions.
$id
$data
SessionHandlerInterface::write()
© 2005–2017 The Cake Software Foundation, Inc.
Licensed under the MIT License.
CakePHP is a registered trademark of Cake Software Foundation, Inc.
We are not endorsed by or affiliated with CakePHP.
https://api.cakephp.org/3.4/class-Cake.Network.Session.CacheSession.html