Avatar of jasonslogan
jasonslogan
 asked on

Load balancer session timeout

Is there a downside to making a load balancer hold a session for a connected computer for an hour?  The only thing I can think of is if the web server they are connected to for that time fails they lose their session and have to log in again because they would be connected to a different web server after that.

I've tried storing the sessions in a db and in a shared folder and neither are great solutions.  DB server gets overloaded with requests and very occasionally the data doesn't replicate fast enough to the other db servers. The file sharing sometimes doesn't work either.  Not sure why but it was quirky so I quit.
Hardware FirewallsRouters

Avatar of undefined
Last Comment
the_endjinn

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
the_endjinn

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
jasonslogan

ASKER
Do load balancers have a way to retain the session if a web server fails?
the_endjinn

I don't believe that is possible as the session info is against the web application, although I guess that depends on what web server you are running as some can be set up as distributed services. It's possible some of the top end application and content aware load balancers can manage session info. You may need to re-engineer the site code with this in mind however.
Experts Exchange has (a) saved my job multiple times, (b) saved me hours, days, and even weeks of work, and often (c) makes me look like a superhero! This place is MAGIC!
Walt Forbes