DynamoDbSession
class DynamoDbSession (View source)
Properties
protected | DynamoDbClient | $client | ||
protected | string | $table | Name of DynamoDB table to store sessions in |
|
protected | SessionHandler | $handler |
Methods
Get an instance of DynamoDbSession configured from the environment if available.
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.
Details
SessionHandler
getHandler()
No description
DynamoDbClient
getClient()
No description
static DynamoDbSession|null
get()
Get an instance of DynamoDbSession configured from the environment if available.
__construct(array $options, string $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 (e.g. via the silverstripe-crontask module), then the inactive session will get removed from the DynamoDB session table.
register()
Register DynamoDB as the session handler.