spring-session
spring-session copied to clipboard
Spring Session
https://github.com/spring-projects/spring-session/blob/e87be43acb77de4d076cbcffbddff0d281c9edda/spring-session-data-redis/src/main/java/org/springframework/session/data/redis/RedisIndexedSessionRepository.java#L1044 The current implementation of MinuteBasedRedisSessionExpirationStore does not apply a “safety net” Time-To-Live (TTL) to the expiration tracking SET. Looking at the save method, we can see that the line...
**Expected Behavior** When creating a custom Query customizer by implementing `SessionRepositoryCustomizer` one should allowed to set the table name after setting the custom queries like so: ```java @Override public void...
**Describe the bug** `SortedSetRedisSessionExpirationStore` touches session itself instead of its expires key, so no Redis key event fires. **Expected behavior** Since `RedisIndexedSessionRepository#onMessage` listens for key events on pattern `this.namespace +...
**Describe the bug** In ReactiveRedisIndexedSessionRepository class, when cleanUpExpiredSession method has exception,like the following stacktrace,the interval task will terminated ,not run next time: `2025-06-20 15:35:18.138 [TID: N/A] [lettuce-eventExecutorLoop-3-1] ERROR reactor.core.publisher.Operators -Operator...
My project is built with Spring Boot 2.7.18 and Spring Session, without using Spring Security. I plan to implement authentication using a custom filter, and when authentication fails, return a...
When using the reactive session implementation, after a successful login, the sessionId is regenerated. When the new sessionId is stored, the associated session keys are renamed correctly, but the old...
**CHANGES** - Refactor customized SQL at the `Customizing the SQL Queries` section, without mentioning `jsonb` yet. Add additional information - Update customized SQL Session attribute queries to handle conflict -...
**Describe the bug** With Commit https://github.com/spring-projects/spring-session/commit/00465a6f00bef564796c4a34a9228efb5fe6ede9 you created your own implementation of the Set-Cookie header in DefaultCookieSerializer.writeCookieValue(...). But the date format in the `Expires` field is not spec compliant to...
Using `DisposableBean` is causing conflicts with Spring Data Redis's Connection factories that have migrated to `Lifecycle` to start/stop connection pools for snapshotting. `Lifecycle.stop` is invoked too early for Spring Session....
This PR migrates RedisIndexedSessionRepository and ReactiveRedisIndexedSessionRepository from DisposableBean to SmartLifecycle to resolve compatibility issues with Spring Data Redis connection factories. The change ensures proper shutdown ordering and prevents Redis connection...