Answer the question
In order to leave comments, you need to log in
Why does a Spring session expire quickly?
I use Spring Session, I store sessions in Redis.
This is how I configured the sessions:
http
.sessionManagement()
.sessionCreationPolicy(SessionCreationPolicy.IF_REQUIRED);
server:
servlet:
encoding:
charset: UTF-8 # Charset of HTTP requests and responses. Added to the "Content-Type" header if not set explicitly
enabled: true # Enable http encoding support
force: true
session:
timeout: 1m
cookie:
max-age: 1m # Using because alone timeout isn't work
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question