dmitry-suffi/redis-session-handler

Обработчик сессий через Redis с механизмом блокировки

1.0.4 2017-06-30 13:11 UTC

This package is auto-updated.

Last update: 2025-05-25 19:19:07 UTC


README

Description

Used to store php sessions radishes.

The mechanism locks: one is the process of working with the session, the second process is waiting.

Installation

composer require dmitry-suffi/redis-session-handler

Using

$redis = new Redis();
if ($redis->connect('11.111.111.11', 6379) && $redis->select(0)) {
    $handler = new \suffi\RedisSessionHandler\RedisSessionHandler($redis);
    session_set_save_handler($handler);
}

session_start();