3. Samples and Guides (Start Here)

To get started with Spring Session, the best place to start is our Sample Applications.

Table 3.1. Sample Applications that use Spring Boot

SourceDescriptionGuide

HttpSession with Redis

Demonstrates how to use Spring Session to replace the HttpSession with Redis.

HttpSession with Redis Guide

HttpSession with JDBC

Demonstrates how to use Spring Session to replace the HttpSession with a relational database store.

HttpSession with JDBC Guide

Find by Username

Demonstrates how to use Spring Session to find sessions by username.

Find by Username Guide

WebSockets

Demonstrates how to use Spring Session with WebSockets.

WebSockets Guide

WebFlux

Demonstrates how to use Spring Session to replace the Spring WebFlux’s WebSession with Redis.

 

HttpSession with Redis JSON serialization

Demonstrates how to use Spring Session to replace the HttpSession with Redis using JSON serialization.

 

HttpSession with simple Redis SessionRepository

Demonstrates how to use Spring Session to replace the HttpSession with Redis using RedisSessionRepository.

 

Table 3.2. Sample Applications that use Spring Java-based configuration

SourceDescriptionGuide

HttpSession with Redis

Demonstrates how to use Spring Session to replace the HttpSession with Redis.

HttpSession with Redis Guide

HttpSession with JDBC

Demonstrates how to use Spring Session to replace the HttpSession with a relational database store.

HttpSession with JDBC Guide

HttpSession with Hazelcast

Demonstrates how to use Spring Session to replace the HttpSession with Hazelcast.

HttpSession with Hazelcast Guide

Custom Cookie

Demonstrates how to use Spring Session and customize the cookie.

Custom Cookie Guide

Spring Security

Demonstrates how to use Spring Session with an existing Spring Security application.

Spring Security Guide

REST

Demonstrates how to use Spring Session in a REST application to support authenticating with a header.

REST Guide


Table 3.3. Sample Applications that use Spring XML-based configuration

SourceDescriptionGuide

HttpSession with Redis

Demonstrates how to use Spring Session to replace the HttpSession with a Redis store.

HttpSession with Redis Guide

HttpSession with JDBC

Demonstrates how to use Spring Session to replace the HttpSession with a relational database store.

HttpSession with JDBC Guide


Table 3.4. Miscellaneous sample Applications

SourceDescriptionGuide

Hazelcast

Demonstrates how to use Spring Session with Hazelcast in a Java EE application.