pythagor/yii2-dynamodbsession

Amazon DynamoDB Session for Yii2

dev-master 2014-11-11 15:56 UTC

This package is not auto-updated.

Last update: 2024-05-07 06:15:35 UTC


README

The yii2-dynamodbsession extension is a Yii2 component for store sessions in the Amazon AWS DynamoDB storage.

Installation

The preferred way to install this extension is through composer.

Configuration

Add session component into your components config.

Example

'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',
        ],
    ],
],

License

yii2-dynamodbsession is released under the BSD 3-Clause License.