milqmedia/mq-redis-session

This package is abandoned and no longer maintained. No replacement package was suggested.

Zend Framework 2 redis session storage

1.0 2016-11-02 16:08 UTC

This package is not auto-updated.

Last update: 2023-02-06 21:37:57 UTC


README

Zend Framework Module for storing sessions in Redis.

Features

  • Redis SessionSaveHandler support
  • Uses Zend\Cache\StorageFactory
  • Easy session configuration

Setup

  1. Run php composer.phar require milqmedia/mq-redis-session:dev-master
  2. Add MQRedisSessionStorage to the enabled modules list
  3. Copy vendor/milqmedia/mq-redis-session/config/redissession.global.php.dist to config/autoload/redissession.global.php
  4. Configure the session options in config/autoload/redissession.global.php
  5. 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();
```