All Questions
Tagged with spring-session spring
352
questions
0
votes
0
answers
22
views
session management in Spring Security 6.3.0 not working [duplicate]
I'm using Spring Boot 3.3.0. I have a custom provider and filter. The very first request from a user contains the credentials with which to authenticate. I can get my provider to successfully ...
0
votes
1
answer
57
views
Problem with HttpSession serialization (ClassNotFoundException) after migration to Spring Session 3 and Hazelcast 5
I am trying to migrate from Spring Boot 2.7 application with Hazelcast 4.2 to Spring Boot 3.2 and Hazelcast 5.3, which also includes JCache Hazelcast provider.
In previous version I was using ...
0
votes
0
answers
36
views
Bring JSESSIONID in Tomcat Application and JSESSIONID in Spring Boot together
I am working on bringing two apps together sessionwise.
So the prefered state is one JSESSIONID, which both apps - one is tomcat the other one can understand.
I found that the tomcat-JSESSIONID: ...
0
votes
1
answer
63
views
I cannot change spring session ttl data in redis
@RequestMapping("/loginByEmail")
@GlobalInterceptor(checkParams = true)
public ResponseVO loginByEmail(HttpSession httpSession,
HttpServletRequest request,...
0
votes
0
answers
20
views
What to do when the storage service is down while using Spring Session?
As is described in the title. If the remote storage service is down, every request ganna throw 500 error. I don't know how to handle such exception nor the way to switch back to memory session storage ...
1
vote
0
answers
121
views
How to Mock JDBC in Unit Test for Spring Session
I'm working in a Kotlin application that uses Spring Boot, and one of the Controller classes uses Spring Session with JDBC to persist session IDs:
@RestController
@RequestMapping("/health")
...
0
votes
2
answers
499
views
How to make the user sessions not expire in Redis in Spring Boot applicaion
I am new to spring-data-redis. I have integrated it with a spring-boot application. As part of this, I have added a few configs as follows:
spring.session.store-type=redis
spring.session.redis....
0
votes
0
answers
39
views
Max session doesn't work when I set it in Spring Security
I am trying to secure my application with Spring security and spring session but setting max_session as 1 doesn't work.
@Configuration
@EnableWebSecurity
public class SecurityConfig {
private ...
0
votes
1
answer
376
views
Spring security - maximumSessions() - not working
I have a project in Spring boot, with Spring security and spring session. I wanted to persist my session in a database so I specified it in application.properties:
spring.session.store-type=jdbc
I ...
0
votes
1
answer
202
views
Initializing RedisHttpSessionConfiguration with Spring Session Data Redis
I am trying to replace the default JDBC session management in my Spring application with Redis, using Spring Session Data Redis 2.2.2.RELEASE and Jedis 3.10.0 on Java 11.
However, I am getting the ...
0
votes
0
answers
53
views
Is there a required order for the execution of logout handlers?
Im using Spring Security reactive with Spring Session Redis.
For custom logout handler, I read Spring Security doc.
new DelegatingServerLogoutHandler(
new WebSessionServerLogoutHandler(), new ...
0
votes
1
answer
122
views
Spring JPA Transaction Manager access Spring JDBC session information without new transaction started
I have a web application in Spring Boot 3.1.4 that uses Hibernate and JDBC-Backed Session persistence, I have a custom JPA Transaction manager that I'm hoping I can use to inject custom connection ...
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 {
@...
1
vote
1
answer
745
views
How to disable spring session when store-type removed from ver3.0
I noticed that in order to disable spring session, the configuration property spring.session.store-type can be set to none.
However, the property has been removed (ref).
Thus, may I know how it can be ...