The yii2-dynamodbsession extension is a Yii2 component for store sessions in the Amazon AWS DynamoDB storage.
The preferred way to install this extension is through composer.
Add session component into your components config.
'components' => [
// ...
'session' => [
'class' => 'pythagor\dynamodbsession\DynamoDbSession',
'sessionTable' => 'YourTableName',
'idColumn' => 'id',
'dataColumn' => 'data',
'expireColumn' => 'expire',
'params' => [
'key' => 'YOUR_AWS_ACCESS_KEY_ID',
'secret' => 'YOUR_AWS_SECRET_ACCESS_KEY',
'region' => 'us-west-2',
],
],
],
yii2-dynamodbsession is released under the BSD 3-Clause License.