Spring Session provides an API and implementations for managing a user's session information.
Spring Session provides an API and implementations for managing a user's session information.
Spring Session makes it trivial to support clustered sessions without being tied to an application container specific solution. It also provides transparent integration with:
HttpSession
in an application container (i.e. Tomcat) neutral way, with support for providing session IDs in headers to work with RESTful APIsHttpSession
alive when receiving WebSocket messagesWebSession
in an application container neutral waySpring Session consists of the following modules:
SessionRepository
and ReactiveSessionRepository
implementation backed by Redis and configuration supportSessionRepository
implementation backed by a relational database and configuration supportSessionRepository
implementation backed by Hazelcast and configuration support
Refer to the Samples and their corresponding guides for a quickstart.