1

I have a Spring application with a standard cookie-based Spring authentication. I can control the session timeout on a Tomcat locally using session-timeout property in my project's web.xml. So for instance, if session-timeout is set to 1, I see that the session expires after one minute.

However, when the application is deployed to AWS Elastic Beanstalk (standard war file), it looks like session-timeout in project's web.xml file has no effect. I am running load-balanced AWS environment.

Am I missing something obvious? How do I control session expiration on AWS Elastic Beanstalk?

Maksim Sorokin
  • 2,334
  • 3
  • 34
  • 61
  • Are you running on a single instance ? Or you have started more then one instance of application at beanstalk ? – Babl Nov 30 '15 at 20:24
  • @Babl, I am running load-balanced AWS environment. I have updated the question. – Maksim Sorokin Dec 01 '15 at 09:27
  • 1
    did you enable session stickiness? If you did, what happens when you issue two requests 5 minutes apart? Are they properly served with the same session id? – Tal Dec 01 '15 at 15:15

1 Answers1

-1

Enabling stick sessions solved the issue.

However, be aware about https://stackoverflow.com/a/10502092/417297

Community
  • 1
  • 1
Maksim Sorokin
  • 2,334
  • 3
  • 34
  • 61