SilverStripe\DynamoDb\Model\DynamoDbSession
Synopsis
class DynamoDbSession
{
- // methods
- public SessionHandler getHandler()
- public static null|DynamoDbSession get()
- public void __construct()
- protected int getSessionLifetime()
- public void register()
Members
protected
- $client — Aws\DynamoDb\DynamoDbClient
- $handler — Aws\DynamoDb\SessionHandler
- $table — string
Methods
protected
- 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 {@link 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
- __construct()
- get() — Get an instance of DynamoDbSession configured from the environment if available.
- getHandler() — Getter for SessionHandler
- register() — Register DynamoDB as the session handler.