Documentation

SessionConnectionInterface

The session connection provides the underlying logic for interacting with Amazon DynamoDB and performs all of the reading and writing operations.

Table of Contents

delete()  : bool
Deletes session record from DynamoDB
deleteExpired()  : bool
Performs garbage collection on the sessions stored in the DynamoDB
read()  : array<string|int, mixed>
Reads session data from DynamoDB
write()  : bool
Writes session data to DynamoDB

Methods

delete()

Deletes session record from DynamoDB

public delete(string $id) : bool
Parameters
$id : string

Session ID

Return values
bool

deleteExpired()

Performs garbage collection on the sessions stored in the DynamoDB

public deleteExpired() : bool
Return values
bool

read()

Reads session data from DynamoDB

public read(string $id) : array<string|int, mixed>
Parameters
$id : string

Session ID

Return values
array<string|int, mixed>

write()

Writes session data to DynamoDB

public write(string $id, string $data, bool $isChanged) : bool
Parameters
$id : string

Session ID

$data : string

Serialized session data

$isChanged : bool

Whether or not the data has changed

Return values
bool

Search results