spring-session
spring-session copied to clipboard
Spring Session
```java public interface SessionAttributeCompressor { boolean accepts(String attributeName); T compress(Object attributeValue); Object uncompress(T serializedAttributeValue); } ``` then we can compress spring security `SecurityContext` to username ```java import lombok.RequiredArgsConstructor; import org.springframework.security.authentication.UsernamePasswordAuthenticationToken;...
**Describe the bug** While trying to run the sample project `spring-session-sample-boot-redis-json` the following error occurs: ``` 2020-05-29 11:58:13.083 ERROR 25590 --- [ restartedMain] o.s.b.web.embedded.tomcat.TomcatStarter : Error starting Tomcat context. Exception:...
Since MongoDB support has been migrated back to this repository, I'm cloning the issue originally reported in spring-projects/spring-session-data-mongodb#107. Original issue description: > Immediate [`FlushMode`](https://github.com/spring-projects/spring-session/blob/master/spring-session-core/src/main/java/org/springframework/session/FlushMode.java) can be used as a strategy...
Since MongoDB support has been migrated back to this repository, I'm cloning the issue originally reported in spring-projects/spring-session-data-mongodb#106. Original issue description: > Generally, session repository implementations should track changes to...
I have some questions about what data consistency guarantees spring boot session jdbc provides. Suppose we have this scenario: - A stateful session in a spring boot application with spring...
**Describe the bug** Server always return 500 if session deserialization failed ```java org.springframework.data.redis.serializer.SerializationException: Cannot deserialize; nested exception is org.springframework.core.serializer.support.SerializationFailedException: Failed to deserialize payload. Is the byte array a result of...
See #1031 for background.
The current implementation of HazelcastSessionRepository does not handle any HazelcastException when accessing the sessions map. In the case of a hazelcast server connection lost, this causes all requests to return...
We should document how to encode the session to: - improve performance - allow attribute changes passively See https://github.com/eishay/jvm-serializers/wiki for performance Related (possibly distinct ticket) we should provide mechanisms to...
Hi, I noticed that the SessionRepositoryFilter is active for all url of the application. Even for images, scripts, stylesheets etc... Is it possible to add a settings in order to...