All Questions
Tagged with spring-session java
218
questions
0
votes
0
answers
107
views
How to get the session ID returned by cookie with spring-session-data-redis
When managing sessions using spring-session-data-redis, I think the session ID is returned in a cookie named SESSION.
(FYI:https://spring.pleiades.io/spring-session/reference/guides/boot-redis.html)
I ...
0
votes
0
answers
59
views
Using Hazelcast for session management in Spring Non Boot Application
I have one non boot spring application and i want to implement hazelcast-session for that.
PFB the code snippet-
pom.xml
<dependency>
<groupId>org.springframework.security</...
0
votes
0
answers
25
views
How do I reconnect to a Spring Session running in Spring Boot to given a session ID that was obtained from RequestContextHolder?
RequestContextHolder.currentRequestAttributes().getSessionId()
Provides us a session, but I was wondering how do I reconnect back to that session from a GET request?
0
votes
0
answers
83
views
Springboot Sessions unable to recognize my custom memory store for storing session data and uses default Session
I have my own in-memory storage implementation. I want to use it with spring sessions to store the spring session data. I have looked at redis implementation and tried to follow that approach. I have ...
1
vote
1
answer
588
views
springboot 3.1.3 problem with customfilter extending AbstractAuthenticationProcessingFilter
So I have observed that when I am trying to use custom filter in security chain, i am not getting session cookie... Why i am doing that ? Because i want to send username and password in JSON not in ...
1
vote
0
answers
129
views
Spring Session Redis failing to serialize OAuth2AccessToken
I'm trying to setup Spring session with Redis and I want data to be serialized to JSON.
This is my SessionConfig:
@Configuration
public class SessionConfig implements BeanClassLoaderAware {
@...
0
votes
0
answers
48
views
Attempting to serialize the session as a JSON not converting types correctly
Serializing the Session using JSON specifies that I can create the following bean
@Bean
RedisSerializer<Object> springSessionDefaultRedisSerializer(ObjectMapper objectMapper) {
return new ...
5
votes
2
answers
1k
views
Can Spring Session be turned off in Spring Boot 3?
In my Spring Boot 2.7.4 project, I use Spring Session with Redis by including these dependencies:
<dependency>
<groupId>org.springframework.boot</groupId>
...
0
votes
0
answers
92
views
Persist session after browser is closed (Spring Boot edition)
This question has already been asked on SO, yet the answers were primarily using Security. I have the following constellations:
I do not use Spring Security
I use Spring Session JDBC
When I restart ...
1
vote
0
answers
103
views
Websocket session is not being persisted in JDBC session store type
Problem: WebSocker session data are not persisted in precreated session tables (SPRING_SESSION, SPRING_SESSION_ATTRIBUTES)
I followed this guide to implement it https://docs.spring.io/spring-session/...
0
votes
1
answer
426
views
Issue with Spring Boot 3 Spring Session: @EnableRedisIndexedHttpSession annotation sets the default value for Redis namespace
When I tried to use Redis indexing to solve the issue of concurrent control in Spring Security session clustering, I noticed that after adding the @EnableRedisIndexedHttpSession annotation, Spring ...
0
votes
0
answers
365
views
How to make Spring Boot track HTTP session without authentication?
I have a simple Spring Boot app. I have created a session-scoped class and want for it to store some session related stuff. I want for the HTTP session to be created and tracked via the JSESSIONID ...
3
votes
0
answers
90
views
Should I configure sessionManagement in HttpSecurity if I use Spring Session?
I am trying to understand how Spring Security and Spring Session projects work together.
In my project I want to save sessions into database that's why I am using Spring Session JDBC. But I can't ...
0
votes
1
answer
370
views
How to set the provider for OAuth2ClientAuthenticationToken in Spring Authorization Server
How can I set the provider class for OAuth2ClientAuthenticationToken object.
I am working on springboot using spring security 5 and Spring Authorization Server ver 0.3.1
I already make the ...
0
votes
1
answer
416
views
Spring session with Hazelcast is still stored in InMemoryWebSessionStore
I'm developing spring boot application. I want to store my session to Hazelcast. I followed this guide. Since I already have hazelcast standalone, I want to use Hazelcast client instead of the ...