Skip to content
Store WordPress session tokens in Redis rather than the usermeta table. Requires the Redis PECL extension.
PHP Shell JavaScript
Branch: master
Clone or download
ethitter Merge branch 'develop' into 'master'
Implement "drop_sessions()" method

See merge request wp-plugins/wp-redis-user-session-storage!2
Latest commit d635157 Jun 4, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
bin Scaffolding Jun 4, 2019
inc Fix docs Jun 4, 2019
languages
tests
.distignore Scaffolding Jun 4, 2019
.editorconfig Scaffolding Jun 4, 2019
.gitattributes Scaffolding Jun 4, 2019
.gitignore Scaffolding Jun 4, 2019
.gitlab-ci.yml No SVN deploy here Jun 4, 2019
.phpcs.xml.dist Scaffolding Jun 4, 2019
Gruntfile.js Scaffolding Jun 4, 2019
LICENSE Grunt tasks Jun 4, 2019
README.md
package-lock.json
package.json Scaffolding Jun 4, 2019
phpunit.xml.dist
readme.txt Scaffolding Jun 4, 2019
wp-redis-user-session-storage.php

README.md

WP Redis User Session Storage

Contributors: ethitter
Donate link: https://ethitter.com/donate/
Tags: user sessions, session tokens, session storage
Requires at least: 4.0
Tested up to: 5.2
Stable tag: 0.1
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html

Store WordPress session tokens in Redis rather than the usermeta table.

Description

Store WordPress user session tokens in Redis rather than the usermeta table.

Installation

  1. Install and configure Redis. There is a good tutorial here.
  2. Install the Redis PECL module.
  3. Activate the plugin network-wide or by placing it in mu-plugins.
  4. By default, the script will connect to Redis at 127.0.0.1:6379. See the Connecting to Redis section for further options.

Frequently Asked Questions

Connecting to Redis

By default, the plugin uses 127.0.0.1 and 6379 as the default host and port when creating a new client instance; the default database of 0 is also used. Three constants are provided to override these default values.

Specify WP_REDIS_USER_SESSION_HOST, WP_REDIS_USER_SESSION_PORT, and WP_REDIS_USER_SESSION_DB to set the necessary, non-default connection values for your Redis instance.

Changelog

0.1

  • Initial public release
You can’t perform that action at this time.