HomeChallengesRepsProblemsLeaderboardTake a challenge

Logged out by the other pod

Sign in, refresh, signed out. Each pod made its own encryption keys, so a cookie from one is noise to the other, and the session lives in one pod’s memory. Share both, through one Redis connection.

Intermediate20 min on the clock5 graded checks · 100 pointsWorks on One Server
Graded by reading your code against the checklist below.

What you build

  • Open one Redis connection per process and register it
  • Read the connection string from configuration
  • Keep the Data Protection keys in Redis
  • Give the keys an application name
  • Move session storage from memory to Redis

Done means

One shared Redis connection from configuration, keys persisted there under an application name, and session state in Redis.

How it is graded

Published in full, before you start — every point is one of these and there is nothing else.

  1. One Redis connection, registered once+20State that outlives one process
  2. The connection string comes from configuration+15Settings, not string literals
  3. Every pod uses the same key ring+30State that outlives one process
  4. The keys have an application name+15State that outlives one process
  5. Session state lives in Redis+20State that outlives one process

What it teaches

The rest of Works on One Server