0

I have a spring boot application up and running. We run it using external standalone tomcat behind LB.

Tomcat version - 9

Springboot - 2.3.4.RELEASE

I have tried with below approach but none works.

web.xml

<session-config>
    <session-timeout>30</session-timeout>
    <tracking-mode>COOKIE</tracking-mode>
  </session-config>
  <display-name>availment</display-name>

application.properties

server.session.tracking-modes=cookie

Javax-servlet

<dependency>
            <groupId>javax.servlet</groupId>
            <artifactId>servlet-api</artifactId>
            <version>2.5</version>
        </dependency>

But none seems to work, user gets logout as soon as request reaches another server where login request did not come.

Ankur Singhal
  • 26,012
  • 16
  • 82
  • 116

0 Answers0