Skip to main content

All Questions

Tagged with
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 ...
user23912437's user avatar
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</...
ankit's user avatar
  • 25
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?
Archimedes Trajano's user avatar
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 ...
hammadkh0's user avatar
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 ...
Rych's user avatar
  • 13
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 { @...
dev-rifaii's user avatar
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 ...
Archimedes Trajano's user avatar
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> ...
Jon H's user avatar
  • 434
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 ...
qarabala's user avatar
  • 178
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/...
thomn9's user avatar
  • 11
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 ...
Blues's user avatar
  • 1
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 ...
user435421's user avatar
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 ...
Scroll's user avatar
  • 178
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 ...
jetpack's user avatar
  • 425
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 ...
Tobi's user avatar
  • 171

15 30 50 per page
1
2 3 4 5
15