Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6347219
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T21:10:20+00:00 2026-05-24T21:10:20+00:00

We are trying to setup load balancing for our website through a firewall. We

  • 0

We are trying to setup load balancing for our website through a firewall. We will have two web-servers, namely ws1, and ws2 both running the same web application with in-process sessions.

My question is, if someone is accessing our website and currently has a session on ws1, and the firewall switches them to ws2, which will give them a new session on ws2. My question is, if they switch back to ws1 while their original session hasn’t expired yet, will they get a new session, or will the browser still have their old session id and bring back their old session?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T21:10:21+00:00Added an answer on May 24, 2026 at 9:10 pm

    When using in-process sessions, the two servers will be completely ignorant of each other. Your users might get switched over and lose their session, and then later get switched back and have their old session “restored”. This will cause no end of grief for you and your users: depending on how much you rely on session, things will randomly disappear and reappear.

    You need to look into Session State Providers, which will let you use a common store for your session data. The typical option is to store session in SQL Server, since you’re probably already sharing that between the two servers. If you’re not using SQL Server, you may need to write your own provider for your database or find one created by a third party. (The paradox here is that now your SQL Server needs to be load balanced / high availability, and now you’ve just shifted the problem.)

    If this is not an option, your firewall might support “session affinity” or “sticky sessions”, which will use some sort of stateful inspection to track sessions and ensure that once a session is started, traffic from that session gets directed to only one server. This is considered a kludge, however, and shouldn’t be relied upon.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to setup a bidirectional localConnection (LC) between two flash objects on the
I am trying to setup a application to load URL in Webview and then
I'm trying to setup rspec for testing in my rails application. I have created
I am trying to set up a JBoss Cluster with Apache Load Balancing. Basically
I'm trying to setup a PHP website in IIS 7.0 with URL rewriting enabled
I'm trying to setup an Active Record web session per request in my WCF
iam trying to setup an little search-engine for my website. I want to add
I'm trying to setup a TransactionManager in my Web Application (powered by Spring MVC
I am trying to dynamically load a user control in an asp.web site. However
I currently trying to setup Amazon Load Balancer for Tomcat workers, but I faced

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.