Interface SessionConnectionInterface
The session connection provides the underlying logic for interacting with Amazon DynamoDB and performs all of the reading and writing operations.
Direct known implementers
Indirect known implementers
Methods Summary
-
read ( string $id )
Reads session data from DynamoDB
-
write ( string $id, string $data, bool $isChanged )
Writes session data to DynamoDB
-
delete ( string $id )
Deletes session record from DynamoDB
-
deleteExpired ( )
Performs garbage collection on the sessions stored in the DynamoDB
Methods Details
array read ( string $id )
Reads session data from DynamoDB
Parameters
string | $id | Session ID |
Returns
array |
boolean write ( string $id, string $data, boolean $isChanged )
Writes session data to DynamoDB
Parameters
string | $id | Session ID |
string | $data | Serialized session data |
boolean | $isChanged | Whether or not the data has changed |
Returns
boolean |
boolean delete ( string $id )
Deletes session record from DynamoDB
Parameters
string | $id | Session ID |
Returns
boolean |
boolean deleteExpired ( )
Performs garbage collection on the sessions stored in the DynamoDB
Returns
boolean |