Quantcast
Viewing latest article 5
Browse Latest Browse All 9

How to keep sessions when moving from one application server to another

Image may be NSFW.
Clik here to view.
Question

Assuming I follow the steps in this answer to deploy a new version of an application without downtimes. When I route the users to the new application server instance, the application will not remember their session so they will be logged out without warning.

Is there a way to keep the sessions alive over multiple servers or to make a “session snapshot” or similar?

In my case it’s a Java application if that matters.

Image may be NSFW.
Clik here to view.
Answer

Store the session data on a separate server that both application servers have access to.


Viewing latest article 5
Browse Latest Browse All 9

Trending Articles