1. Introduction

Spring Session provides an API and implementations for managing a user’s session information. It also provides transparent integration with:spring-doc.cn

  • HttpSession - enables the HttpSession to be clustered (i.e. replicated for highly availability) without being tied to an application container specific solution.spring-doc.cn

  • REST API - allows the session ID to be provided in the protocol header to work with RESTful APIs.spring-doc.cn

  • WebSocket - provides the ability to keep the HttpSession alive when receiving WebSocket messages.spring-doc.cn

  • WebSession - allows replacing the Spring WebFlux’s WebSession in an application container neutral way.spring-doc.cn

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.spring-doc.cn