Session Handler Redis

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

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 shared redis server. This allows sessions to be shared across multiple front-end instances of ProcessWire.

Config


By default the module will attempt to connect to redis on 127.0.0.1 using the default redis port of 6379. It will use a 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     = '127.0.0.1';
$config->redis_session_server_port   = 6379;
$config->redis_session_server_db     = 0;
$config->redis_session_server_prefix = "PHPSESSID:";
$config->redis_session_server_ttl    = 1800;

License


GPLv2+

More modules by Netcarver

  • ProcessDiagnostics

    A simple diagnostic gathering suite of modules for ProcessWire CMS/CMF.
  • Textile

    A text formatting module for parsing the Textile lightweight markup language. This uses the netcarver/textile package from Github.
  • Release Notes Discovery Module

    Makes discovery of a module's changes, prior to upgrade, a trivial task. Makes support documentation accessible from the admin interface.
  • PW-FieldtypeTime

    Adds a fieldtype and Inputfield for MySQL TIME fields.
  • Admin Restrict Page Tree

    Stops users with certain roles from accessing the page tree.
  • Street Address

    Fieldtype to store a street address and allows access to its subfields.
  • Field Change Notifier

    Emails users with a given role when a watched field changes value.
  • Fluid Images Textformatter

    Removes the height attribute and adds a class to img tags. Set max-width:100% for the class in your CSS and you have fluid images.
  • Session Login Alarm

    Notify users of successful login or failed login attempts on their accounts.

All modules by Netcarver

Install and use modules at your own risk. Always have a site and database backup before installing new modules.