DynamoDbSession
class DynamoDbSession (View source)
Properties
protected | DynamoDbClient | $client | ||
protected | string | $table | ||
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 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.
Details
SessionHandler
getHandler()
Getter for SessionHandler
static null|DynamoDbSession
get()
Get an instance of DynamoDbSession configured from the environment if available.
__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.
register()
Register DynamoDB as the session handler.