Skip to main content

Questions tagged [spring-session]

Spring Session provides a common infrastructure for managing user’s session information.

spring-session
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 ...
Steve Maring's user avatar
1 vote
1 answer
53 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 ...
theMyth's user avatar
  • 157
0 votes
0 answers
11 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 ...
Hemanth K N's user avatar
-1 votes
1 answer
63 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-...
zhfkt's user avatar
  • 2,441
0 votes
1 answer
38 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-...
John Cooper's user avatar
0 votes
0 answers
19 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 ...
rain-sh's user avatar
  • 11
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 ...
G4iner's user avatar
  • 31
0 votes
2 answers
55 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) ...
Yuki  Yoshida's user avatar
  • 1,263
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: ...
noircc's user avatar
  • 640
0 votes
0 answers
18 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 ...
user2314859's user avatar
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
1 answer
194 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 ...
shirdisai's user avatar
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,...
Lee Anony's user avatar
6 votes
0 answers
658 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): ...
sge's user avatar
  • 633
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 ...
Revers.'s user avatar

15 30 50 per page
1
2 3 4 5
51