skip to Main Content

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.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…

VIEW QUESTION

Why does Spring Boot not configure Spring Session Redis?

Following this example here I upgraded my Spring Boot 3.2 application to use Redis as session storage. I've added the required dependency: <dependency> <groupId>org.springframework.session</groupId> <artifactId>spring-session-data-redis</artifactId> </dependency> I've set some application properties (yaml): spring.session.redis.flush-mode: on_save spring.session.redis.namespace: "spring:session" spring.data.redis.host: "localhost" spring.data.redis.port: 6379…

VIEW QUESTION

How do I connect redis to Spring Boot?

I want to cocnect the Redis Docker Component to Spring Boot Session. The docker componenet is up and running Steins-MacBook-Air:~ steinkorsveien$ docker exec -it some-redis sh -c "redis-cli" 127.0.0.1:6379> exit To Spring Boot I have in the application.properties file spring.redis.host=localhost…

VIEW QUESTION

Error creating bean with name 'enableRedisKeyspaceNotificationsInitializer'

I am able to connect to Azure Cache for Redis with the following Spring Session configuration: <bean id="redisPassword" class="org.springframework.data.redis.connection.RedisPassword"> <constructor-arg index="0" value="xxxxxxxxxxxxxxxx"/> </bean> <bean id="redisStandaloneConfiguration" class="org.springframework.data.redis.connection.RedisStandaloneConfiguration"> <property name="hostName" value="acmedev.redis.cache.windows.net"/> <property name="port" value="6380"/> <property name="password" ref="redisPassword"/> </bean> <context:annotation-config/> <bean class="org.springframework.session.data.redis.config.annotation.web.http.RedisHttpSessionConfiguration"/> <bean…

VIEW QUESTION
Back To Top
Search