Questions tagged [spring-session]
Spring Session provides a common infrastructure for managing user’s session information.
spring-session
754
questions
1
vote
1
answer
33
views
Security Context with HttpSessionSecurityContextRepository always returns 403 after successful authentication, Spring Boot 3.3
Im revising and learning Spring Boot. With the 3.3 latest version, there are issues saving the security context in the session.
What I am trying to do is have a regular Server side stateful session ...
0
votes
0
answers
10
views
GCP Memstore Discovery End Point connectivity
We are using spring session which uses Lettuce connection factory to connect to the GCP redis single instance.
We are planning to move to GCP redis cluster which has Discovery End point (single IP ...
-1
votes
1
answer
57
views
What's the relationship between Keycloak SSO Session Idle Time and Spring Session Timeout?
I am referencing following tutorials to combine Keycloak OAuth2 and Spring Boot+Spring Gateway+Spring Security+Spring Session to save http session in Redis:
https://www.baeldung.com/spring-cloud-...
0
votes
1
answer
34
views
Getting HazelcastSerializationException when starting the spring boot application
Can someone tell me what could be a possible resolution for the below exception ?
2024-06-10 07:00:24,459 WARNING [catalina] [com.hazelcast.spi.impl.proxyservice.ProxyService] [10.6.7.136]:5701 [nev-...
0
votes
0
answers
17
views
when user login the system,if he hasn't operated a long time,how to logout the system and skip to login page
I want to achieve this function:when user login the system,if he hasn't operated a long time,how to logout the system and skip to login page?
I use a filter class which implements Filter,and when ...
0
votes
1
answer
56
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
2
answers
49
views
How to configure JdbcIndexedSessionRepository on spring.main.web-application-type=none
We have 2 spring-boot(3.3.0) application
web-application
N instances
each of them are scheduled spring-session(jdbc) cleanup-cron job every minutes (relying to spring.session.jdbc.cleanup-cron)
...
0
votes
0
answers
33
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
0
answers
17
views
Redisson session management for Spring Webflow
So far we have been running our Spring Webflow based WebApps in a Tomcat cluster with sticky sessions. In the future, Tomcat session management will be implemented using Redisson Session Manager and ...
0
votes
0
answers
81
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
1
answer
174
views
expiredSessionStrategy not getting invoked when spring session expires
I have a HTML form that issues REST API calls to a Spring Boot backend. I'm using Spring Session to handle concurrent logins by the same user. If I use expiredUrl in the below code, I get redirected ...
0
votes
1
answer
55
views
I cannot change spring session ttl data in redis
@RequestMapping("/loginByEmail")
@GlobalInterceptor(checkParams = true)
public ResponseVO loginByEmail(HttpSession httpSession,
HttpServletRequest request,...
6
votes
0
answers
596
views
How to fix "Session was invalidated" Exception?
I have an endpoint (/logout) that invalidate the session manually by calling HttpSession#invalidate(). Sometimes i got the following exception (Within 1000 request it happens about a dozen times):
...
0
votes
0
answers
33
views
SpringSession and redis always rename sessionKey in redis
i am using the SpringSecurity,SpringSession and redis
When I logged into three accounts, SpringSession added three pieces of data to Redis
But the previous account was renamed by the later account
i ...
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 ...