my spring boot project worked well with the following setting in the local env.
server.servlet.session.timeout: 180m
but when i released the jar to the azure as app service. session time-out became to a default time(1800s).
request.getSession().getMaxInactiveInterval() = 1800
where can i set the session time in azure, or wheather azure support the setting ?
some one who can give some advice? thanks.
@Anonymous
thanks for you answer.
i knew that The 30 minute timeout is a default value for Spring Boot.
i want to know how to override the default 30 minute timeout to 180minute when i released the jar in the Azure As a Azure App Service.
Hi @shinou,
I'm not sure if you're deploy via
.jar
or
.war
but according to
this Stackoverflow post
, session timeout setting may or may not be used and seems to work when Spring Boot uses an embedded Tomcat as the web container. If you're deploy your app as a WAR file, your setting will not be honored unless a web.xml file is created
with a configuration
.