DatabaseSession provides methods to be used with CakeSession.
$_model protected $_timeout protected integerConstructor. Looks at Session configuration information and sets up the session model.
__construct( )
Constructor. Looks at Session configuration information and sets up the session model.
close( )
Method called on close of a database session.
CakeSessionHandlerInterface::close() destroy( integer $id )
Method called on the destruction of a database session.
$id CakeSessionHandlerInterface::destroy() gc( integer $expires null )
Helper function called on gc for database sessions.
$expires optional null CakeSessionHandlerInterface::gc() open( )
Method called on open of a database session.
CakeSessionHandlerInterface::open() read( integer|string $id )
Method used to read from a database session.
$id CakeSessionHandlerInterface::read() write( integer $id , mixed $data )
Helper function called on write for database sessions.
Will retry, once, if the save triggers a PDOException which can happen if a race condition is encountered
$id $data CakeSessionHandlerInterface::write()
© 2005–2016 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.
http://api.cakephp.org/2.8/class-DatabaseSession.html