Zend Framework Module for storing sessions in Redis.
- Redis SessionSaveHandler support
- Uses Zend\Cache\StorageFactory
- Easy session configuration
- Run
php composer.phar require milqmedia/mq-redis-session:dev-master
- Add
MQRedisSessionStorage
to the enabled modules list - Copy
vendor/milqmedia/mq-redis-session/config/redissession.global.php.dist
toconfig/autoload/redissession.global.php
- Configure the session options in
config/autoload/redissession.global.php
- Session storage will be set by default. For more control set "set_storage_on_boot" to false in your config file and add the lines below in your project's main module or elsewhere:
```php
$redisStorage = $sm->get('MQRedisSessionStorage\Storage\RedisStorage');
$redisStorage->setSessionStorage();
```