rembrembdocs

Redis session store

Store web sessions in Redis with cookie-based session IDs and TTL expiration

This guide family shows how to store web sessions in Redis so multiple application servers can share session state.

Overview

A Redis-backed session store is a good fit when you need:

The typical pattern is:

  1. Generate an opaque session ID
  2. Store the session data in Redis under a key such as session:{id}
  3. Send the session ID to the browser in a cookie
  4. Load the session from Redis on each request
  5. Refresh the TTL while the session stays active

Available implementations

On this page