# spring-projects/spring-session

Spring Session

Repository: https://github.com/spring-projects/spring-session
Canonical: https://ross.abutalabs.com/products/spring-session
Homepage: https://spring.io/projects/spring-session
Language: Java
License: Apache-2.0
License Family: permissive
Last push: 2026-08-25T20:26:28+00:00

## Health v2 (maintenance only)
Score: 99/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 99, release rhythm 98, longevity 100
- inputs: {"age_days": 4457, "days_push": 8, "days_rel": 13, "gap_med": 6, "n_releases_24m": 30}
- flags: no_readme
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1936, forks 1149 (observed 2026-08-28T04:05:57.061342+00:00)

## What it is
Spring Session is a Java library providing an API and implementations for managing user session information in Spring applications. It replaces container-specific HttpSession handling with pluggable backends like Redis, JDBC, Hazelcast, and MongoDB, enabling clustered sessions and RESTful session IDs in headers.

## Use cases
- manage http sessions in a redis-backed store
- cluster sessions across multiple tomcat instances
- keep sessions alive over websocket connections
- replace container-specific session handling with a neutral solution
- store webflux websession in a database
- pass session ids in headers for restful apis

## When to choose
- you run a Spring or Spring Boot app needing horizontally scalable sessions
- you want sessions persisted in Redis, JDBC, or another datastore instead of app server memory
- you need container-neutral session management across Tomcat, Jetty, etc.

## When to avoid
- you build a simple single-instance app where default container sessions suffice
- you use a non-JVM stack
- you rely on stateless JWT-style auth with no server-side sessions

## Facets
- artifact type: library
- maturity: stable
- function: middleware, caching, web-framework, websocket
- domain: backend, web-development, microservices, security
- platform: jvm
- tags: session-management, http-session, redis, jdbc, clustered-sessions, spring-ecosystem, spring, server-side

## Member repositories
- spring-projects/spring-session (main) score 99

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:57.061342+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-30T03:08:26.456756+00:00, confidence not recorded.
  - homepage: https://spring.io/projects/spring-session (fetched 2026-08-29T10:47:43.906873+00:00, sha 0c55b44a83a6)
  - site_page: https://spring.io/quickstart (fetched 2026-08-29T10:47:43.922688+00:00, sha fc64dd950363)
  - site_page: https://spring.io/projects/spring-restdocs (fetched 2026-08-29T10:47:43.926381+00:00, sha 1e2a101b77d3)
  - site_page: https://enterprise.spring.io (fetched 2026-08-29T10:47:43.920354+00:00, sha 85ac7d6d5114)
  - site_page: https://enterprise.spring.io/lts-releases (fetched 2026-08-29T10:47:43.924565+00:00, sha 3251cc8760b6)
- Data as of 2026-08-30T08:39:29.467469+00:00.
