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 8953989
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T14:12:54+00:00 2026-06-15T14:12:54+00:00

Our operator has implemented a Round Robin load balancer on our web portal and

  • 0

Our operator has implemented a Round Robin load balancer on our web portal and it seems to be causing some problems I can’t get to the bottom of.

I’m able to identify which server we’re on and as we navigate around the site we stay on server A. If I leave it for 5 minutes and try another page I’ll get pushed to server B, logged out and shown the log in page.

I’ve got them to make sure the MachineKey in the machine.config is the same on both servers and I’ve tested locally that the session isn’t being used – I can turn the session off completely locally and it still works. I’ve verified on both servers it is creating an ASPXAUTH cookie on the domain so we should be classed as authenticated on both servers – but keep loosing my authentication every time I change server.

Any ideas on what could be causing the logging out? I’m guessing it’s my misunderstanding about how ASPXAUTH works.

  • 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-06-15T14:12:55+00:00Added an answer on June 15, 2026 at 2:12 pm

    Sessions are handled separately from Forms Authentication. There is a good explanation of this here.

    The most common reason for Forms Authentication failures on load-balanced environments is lack of synchronization of the MachineKey element. You’ve stated that you’ve got the server operators to ensure that the MachineKey is synchronized, but have you verified this yourself in some way? Is this the case on ALL the web servers? From previous dealings with a couple of commercial web hosts, I’ve found that it is (unfortunately) difficult to take their assurances at face value.

    Another thing to check is if the FormsAuthentication configuration (timeout, path, name, etc.) is the same on all of the hosts.

    Are the patch levels the same on all of the hosts? You might want to see if the compatibility switch mentioned here is applicable in your situation.

    Assuming that the hosting setup is correct, maybe you have initialization code on the page that logs you out if some condition is not fulfilled?

    Try to take a look at the server logs and trace the sequence of HTTP requests involved during a failed page request. That might produce a clue.

    Edit: This guide to troubleshooting Forms Authentication problems is detailed, and quite helpful: Troubleshooting Forms Authentication

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

Sidebar

Related Questions

Our web app uses SystemPropertyPlaceholder to load property files depending on the value of
Our users return to our web site from an external site, to a URL
Our company has a share point document server where the UNC looks something like
Can we put functions to determine the condition for our list comprehensions. Here is
Since a BSTR is only a typedef for wchar_t* our code base has several
I'm changing some legacy code so that is uses smart pointers. Our projects pre-date
One of our suppliers has a buggy shop floor system (long story short). While
Our C++ professor mentioned that using the result of operator-> as input into another
I'm trying to do some unit testing on a project that unfortunately has high
Possible Duplicate: C++ Comma Operator About a year ago I noted some obscure syntax

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.