Title: Redis User Session Storage
Author: Erick Hitter
Published: <strong>July 13, 2022</strong>
Last modified: July 16, 2022

---

Search plugins

This plugin **hasn’t been tested with the latest 3 major releases of WordPress**.
It may no longer be maintained or supported and may have compatibility issues when
used with more recent versions of WordPress.

![](https://s.w.org/plugins/geopattern-icon/wp-redis-user-session-storage.svg)

# Redis User Session Storage

 By [Erick Hitter](https://profiles.wordpress.org/ethitter/)

[Download](https://downloads.wordpress.org/plugin/wp-redis-user-session-storage.0.2.zip)

 * [Details](https://wordpress.org/plugins/wp-redis-user-session-storage/#description)
 * [Reviews](https://wordpress.org/plugins/wp-redis-user-session-storage/#reviews)
 *  [Installation](https://wordpress.org/plugins/wp-redis-user-session-storage/#installation)
 * [Development](https://wordpress.org/plugins/wp-redis-user-session-storage/#developers)

 [Support](https://wordpress.org/support/plugin/wp-redis-user-session-storage/)

## Description

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

This plugin was previously known as `WP Redis User Session Storage` and was renamed
to comply with WordPress.org naming constraints. The previous class name is aliased
to support existing extensions.

## Installation

 1. Install and configure Redis.
 2. Install the [Redis PECL module](http://pecl.php.net/package/redis).
 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.

## FAQ

### Connecting to Redis

By default, the plugin uses `127.0.0.1` and `6379` as the default host and port,
respectively, when creating a new client instance; the default database of `0` is
also used.

Specify any of the following constants to set the necessary, non-default connection
values for your Redis instance:

 * `WP_REDIS_USER_SESSION_HOST` – Hostname or IP of the Redis server, defaults to`
   127.0.0.1`.
 * `WP_REDIS_USER_SESSION_PORT` – Port of the Redis server, defaults to `6379`.
 * `WP_REDIS_USER_SESSION_SOCKET` – Path to a Unix socket file for the Redis server,
   if available. Takes precedence over the port value when set.
 * `WP_REDIS_USER_SESSION_AUTH` – Password for the Redis server, if required.
 * `WP_REDIS_USER_SESSION_DB` – Database number to use for the Redis server, defaults
   to `0`.
 * `WP_REDIS_USER_SESSION_SERIALIZER` – Serializer to use for the Redis server, 
   defaults to `Redis::SERIALIZER_PHP`.

## Reviews

There are no reviews for this plugin.

## Contributors & Developers

“Redis User Session Storage” is open source software. The following people have 
contributed to this plugin.

Contributors

 *   [ Erick Hitter ](https://profiles.wordpress.org/ethitter/)

[Translate “Redis User Session Storage” into your language.](https://translate.wordpress.org/projects/wp-plugins/wp-redis-user-session-storage)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/wp-redis-user-session-storage/),
check out the [SVN repository](https://plugins.svn.wordpress.org/wp-redis-user-session-storage/),
or subscribe to the [development log](https://plugins.trac.wordpress.org/log/wp-redis-user-session-storage/)
by [RSS](https://plugins.trac.wordpress.org/log/wp-redis-user-session-storage/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### 0.2

 * Add cleanup routine for usermeta storage.
 * Prepare plugin for WordPress.org release.

#### 0.1

 * Initial public release

## Meta

 *  Version **0.2**
 *  Last updated **4 years ago**
 *  Active installations **200+**
 *  WordPress version ** 4.0 or higher **
 *  Tested up to **6.0.11**
 *  PHP version ** 5.6 or higher **
 * Tag
 * [user sessions](https://wordpress.org/plugins/tags/user-sessions/)
 *  [Advanced View](https://wordpress.org/plugins/wp-redis-user-session-storage/advanced/)

## Ratings

No reviews have been submitted yet.

[Your review](https://wordpress.org/support/plugin/wp-redis-user-session-storage/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/wp-redis-user-session-storage/reviews/)

## Contributors

 *   [ Erick Hitter ](https://profiles.wordpress.org/ethitter/)

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/wp-redis-user-session-storage/)

## Donate

Would you like to support the advancement of this plugin?

 [ Donate to this plugin ](https://ethitter.com/donate/)