Spring Session

Authors

Rob Winch , Vedran Pavić , Jay Bryant , Eleftheria Stein-Kousathana

Table of Contents

1. Introduction
2. What’s New in 2.0
3. Samples and Guides (Start Here)
4. Spring Session Modules
5. HttpSession Integration
5.1. Why Spring Session and HttpSession?
5.2. HttpSession with Redis
5.2.1. Redis Java-based Configuration
Spring Java Configuration
Java Servlet Container Initialization
5.2.2. Redis XML-based Configuration
Spring XML Configuration
XML Servlet Container Initialization
5.3. HttpSession with JDBC
5.3.1. JDBC Java-based Configuration
Spring Java Configuration
Java Servlet Container Initialization
5.3.2. JDBC XML-based Configuration
Spring XML Configuration
XML Servlet Container Initialization
5.3.3. JDBC Spring Boot-based Configuration
Spring Boot Configuration
Configuring the DataSource
Servlet Container Initialization
5.4. HttpSession with Hazelcast
5.4.1. Spring Configuration
5.4.2. Servlet Container Initialization
5.5. How HttpSession Integration Works
5.6. HttpSession and RESTful APIs
5.6.1. Spring Configuration
5.6.2. Servlet Container Initialization
5.7. Using HttpSessionListener
6. WebSocket Integration
6.1. Why Spring Session and WebSockets?
6.2. WebSocket Usage
6.2.1. HttpSession Integration
6.2.2. Spring Configuration
7. WebSession Integration
7.1. Why Spring Session and WebSession?
7.2. WebSession with Redis
7.3. How WebSession Integration Works
8. Spring Security Integration
8.1. Spring Security Remember-me Support
8.2. Spring Security Concurrent Session Control
8.3. Limitations
9. API Documentation
9.1. Using Session
9.2. Using SessionRepository
9.3. Using FindByIndexNameSessionRepository
9.4. Using ReactiveSessionRepository
9.5. Using @EnableSpringHttpSession
9.6. Using @EnableSpringWebSession
9.7. Using RedisIndexedSessionRepository
9.7.1. Instantiating a RedisIndexedSessionRepository
9.7.2. Using @EnableRedisHttpSession
Custom RedisSerializer
9.7.3. Redis TaskExecutor
9.7.4. Storage Details
Saving a Session
Optimized Writes
Session Expiration
9.7.5. SessionDeletedEvent and SessionExpiredEvent
9.7.6. Using SessionCreatedEvent
9.7.7. Viewing the Session in Redis
9.8. Using ReactiveRedisSessionRepository
9.8.1. Instantiating a ReactiveRedisSessionRepository
9.8.2. Using @EnableRedisWebSession
Optimized Writes
9.8.3. Viewing the Session in Redis
9.9. Using MapSessionRepository
9.9.1. Instantiating MapSessionRepository
9.9.2. Using Spring Session and Hazlecast
9.10. Using ReactiveMapSessionRepository
9.11. Using JdbcIndexedSessionRepository
9.11.1. Instantiating a JdbcIndexedSessionRepository
9.11.2. Using @EnableJdbcHttpSession
Customizing LobHandler
Customizing ConversionService
9.11.3. Storage Details
9.11.4. Transaction Management
9.12. Using HazelcastIndexedSessionRepository
9.12.1. Instantiating a HazelcastIndexedSessionRepository
9.12.2. Using @EnableHazelcastHttpSession
9.12.3. Basic Customization
9.12.4. Session Events
9.12.5. Storage Details
9.13. Using CookieSerializer
9.13.1. Exposing CookieSerializer as a bean
9.13.2. Customizing CookieSerializer
10. Customing SessionRepository
11. Upgrading to 2.x
11.1. Baseline Update
11.2. Replaced and Removed Modules
11.3. Replaced and Removed Packages, Classes, and Methods
11.4. Dropped Support
12. Spring Session Community
12.1. Support
12.2. Source Code
12.3. Issue Tracking
12.4. Contributing
12.5. License
12.6. Community Extensions
13. Minimum Requirements