class DynamoDbSession (View source)

Properties

protected DynamoDbClient $client
protected string $table
protected SessionHandler $handler

Methods

public
SessionHandler
getHandler()

Getter for SessionHandler

public static 
get()

Get an instance of DynamoDbSession configured from the environment if available.

public
__construct($options, $table)

No description

protected
int
getSessionLifetime()

check the AWS constant or refer to the Session class to find the session timeout value (if it exists) in terms of DynamoDB, session_lifetime is the time to mark the inactive session to be garbage collected if GarbageCollectSessionCronTask is running periodically on your server (via the silverstripe-crontask module), then the inactive session will get removed from the DynamoDB session table.

public
register()

Register DynamoDB as the session handler.

Details

SessionHandler getHandler()

Getter for SessionHandler

Return Value

SessionHandler

static null|DynamoDbSession get()

Get an instance of DynamoDbSession configured from the environment if available.

Return Value

null|DynamoDbSession

__construct($options, $table)

No description

Parameters

$options
$table

protected int getSessionLifetime()

check the AWS constant or refer to the Session class to find the session timeout value (if it exists) in terms of DynamoDB, session_lifetime is the time to mark the inactive session to be garbage collected if GarbageCollectSessionCronTask is running periodically on your server (via the silverstripe-crontask module), then the inactive session will get removed from the DynamoDB session table.

Return Value

int

The session lifetime

register()

Register DynamoDB as the session handler.