Fully Qualified Name: | Laminas\Session\SaveHandler\DbTableGateway |
Implements: | SaveHandlerInterface |
DB Table Gateway session save handler
Name | Description | Defined By |
---|---|---|
__construct() | Constructor | DbTableGateway |
close() | Close session | DbTableGateway |
destroy() | Destroy session | DbTableGateway |
gc() | Garbage Collection | DbTableGateway |
open() | Open Session | DbTableGateway |
read() | Read session data | DbTableGateway |
write() | Write session data | DbTableGateway |
Constructor
Parameter Name | Type | Description |
---|---|---|
$tableGateway | \TableGateway | |
$options | \DbTableGatewayOptions |
Returns:
Close session
Returns: bool
Destroy session
Parameter Name | Type | Description |
---|---|---|
$id | string |
Returns: bool
Garbage Collection
Parameter Name | Type | Description |
---|---|---|
$maxlifetime | int |
Returns: bool
Open Session
Parameter Name | Type | Description |
---|---|---|
$savePath | string | |
$name | string |
Returns: bool
Read session data
Parameter Name | Type | Description |
---|---|---|
$id | string | |
$destroyExpired | bool | Optional; |
Returns: string
Write session data
Parameter Name | Type | Description |
---|---|---|
$id | string | |
$data | string |
Returns: bool