About Session Handler Redis

Session handler module for ProcessWire that uses Redis as the back-end session store.

Category Other Modules
Modules that have a unique purpose not covered by existing categories.
Release StateBeta
Close to stable, but users are advised to be cautious and test thoroughly.*
Module Version0.5.0
Class NameSessionHandlerRedis
Compatibility2.5, 2.6, 2.7
Date AddedDecember 24, 2014
Recommended ByNew recommendations may take up to 1 day to appear.


This module's files should be placed in /site/modules/SessionHandlerRedis/
How to install or uninstall modules



PHP Session Handler module for ProcessWire that uses Redis as the back-end storage engine.

The Need

Using Redis as the back-end storage engine allows you to store your session data in the memory of a dedicated or sharedredis server. This allows sessions to be shared across multiple front-end instances of ProcessWire.


By default the module will attempt to connect to redis on using the default redis port of 6379. It will usea TTL of 30 mins (1800seconds) for all session keys and will prefix them with PHPSESSID: and store them all in the default redis DB (number 0).

You can change any of these defaults by adding the following lines to your config.php file (adjusting as needed)...

$config->redis_session_server_ip     = '';
$config->redis_session_server_port   = 6379;
$config->redis_session_server_db     = 0;
$config->redis_session_server_prefix = "PHPSESSID:";
$config->redis_session_server_ttl    = 1800;




No comments yet. Be the first to post!

Post a Comment

Your e-mail is kept confidential and not included with your comment. Website is optional.