1. Introduction
Spring Session provides an API and implementations for managing a user’s session information. It also provides transparent integration with:
-
HttpSession - enables the
HttpSessionto be clustered (i.e. replicated for highly availability) without being tied to an application container specific solution. -
REST API - allows the session ID to be provided in the protocol header to work with RESTful APIs.
-
WebSocket - provides the ability to keep the
HttpSessionalive when receiving WebSocket messages. -
WebSession - allows replacing the Spring WebFlux’s
WebSessionin an application container neutral way.
In a nutshell, Spring Session replaces the javax.servlet.http.HttpSession in an application container neutral way
by supplying a more common and robust session implementation backing the HttpSession.