# expressjs/session

Simple session middleware for Express

Repository: https://github.com/expressjs/session
Canonical: https://ross.abutalabs.com/products/session
Language: JavaScript
License: MIT
License Family: permissive
Topics: javascript, nodejs, expressjs, middleware, session
Last push: 2026-08-05T08:41:25+00:00

## Health v2 (maintenance only)
Score: 75/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 96, release rhythm 35, longevity 100
- inputs: {"age_days": 4582, "days_push": 28, "days_rel": 223, "gap_med": 234.5, "n_releases_24m": 3}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 6358, forks 1002 (observed 2026-08-28T04:09:42.797083+00:00)

## What it is
express-session is official session middleware for the Express web framework that manages user sessions via cookies holding only a session ID, with server-side data storage. It supports pluggable session stores and configurable cookie options.

## Use cases
- add session management to an express app
- store user login state server-side in nodejs
- manage session cookies in express middleware
- plug a redis or database session store into express
- keep users logged in across requests in nodejs

## When to choose
- you are building an Express app and need session handling
- you want server-side session storage with pluggable stores
- you need a battle-tested, widely used session middleware

## When to avoid
- you use a framework other than Express
- you want stateless JWT-based authentication instead of sessions
- you need production session storage without configuring an external store (default MemoryStore is dev-only)

## Facets
- artifact type: library
- maturity: stable
- function: middleware, auth, http-server
- domain: web-development, backend, security
- platform: -
- tags: express, session-management, cookies, session-store, nodejs, web-server

## Member repositories
- expressjs/session (main) score 75

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:09:42.797083+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T17:46:05.474434+00:00, confidence not recorded.
  - readme: https://github.com/expressjs/session (fetched 2026-08-28T04:09:42.797083+00:00, sha d8198d1ee857)
- Data as of 2026-08-30T08:39:29.467469+00:00.
