DB Table Gateway session save handler

package Default

 Methods

Constructor

__construct(\Zend\Db\TableGateway\TableGateway $tableGateway, \Zend\Session\SaveHandler\DbTableGatewayOptions $options) 

Parameters

$tableGateway

\Zend\Db\TableGateway\TableGateway

$options

\Zend\Session\SaveHandler\DbTableGatewayOptions

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) : true
inherited_from \Zend\Session\SaveHandler\SaveHandlerInterface::gc()

Parameters

$maxlifetime

integer

Returns

true

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

Write session data

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

Parameters

$id

string

$data

string

Returns

boolean

 Properties

 

Lifetime

$lifetime : integer

Default

 

DbTableGateway Options

$options : \Zend\Session\SaveHandler\DbTableGatewayOptions

Default

 

Session Name

$sessionName : string

Default

 

Session Save Path

$sessionSavePath : string

Default

 

Zend Db Table Gateway

$tableGateway : \Zend\Db\TableGateway\TableGateway

Default