Skip to main content

What it flags

express-session or @fastify/session is set up without a store, or with an explicit store: new session.MemoryStore(), so sessions live in process memory: they leak, are lost on restart and are not shared across instances.
Options that may be mutated after creation or may inherit a store through __proto__ are skipped.

How to review or fix

Pass a shared store such as connect-redis or connect-pg-simple.

Configuration

Set the rule to "off" in loadwise.config.json to drop its findings: