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.namespace=tc
server.servlet.session.timeout=-1
server.servlet.session.cookie.name=UISESSION
server.servlet.session.cookie.http-only=true
I don't want the user sessions to persist forever in REDIS. As per How to set Redis Http Session Timout to Unlimited in Spring, even after having the expiry timeout -1, I see all records are getting expired.
That's why I see different UISESSION cookie values in request headers every day. I want a permanent value of UISESSION for my Spring boot application for a given end user.
I am not getting any idea regarding how to achieve this. Could anyone please help here? Thanks.
With spring boot 3, property name is "spring.cache.redis.time-to-live", please cross check your property name set.