DrawCode Practice Problem

Design a Session Store

Design server-side session management for web apps: create session on login, store opaque session id in cookie, map to user id and metadata in a fast store with TTL sliding expiration. Support logout (invalidate) and rotation on privilege change.


Interactive Visualizer Workspace

Explore step-by-step interactive animations, memory state tracking, and live multi-language execution in DrawCode.

Launch Interactive Visualizer