Network Load Balancing and FormsAuthentication

Posted on 2005-04-12
Medium Priority
Last Modified: 2008-02-01
My project is currently having issues with our ASP.NET application running on 2 web servers that are using Network Load Balancing (NLB) on Windows 2003 Server.  We are not storing anything in the session.  We are using forms authentication and are using an encrypted FormsAuthenticationTicket.  Our testers will be logged out of the site at very sporadic times and it appears to be when a user jumps from one server to the next.

Any ideas or suggestions as to what the problem may be, or how to fix it?
Question by:larkinyoung
  • 3
LVL 33

Expert Comment

ID: 13766244
I'm not sure of how exactly load balancing works, but if you have two web.config's, one on each other, you have to share the authentication key the servers will use, or you will experience the logout problem.

This article details what you need to do:

also, fyi, this article has some major bugs, the one section should look like this,

            validationKey= "C50B3C89CB21F4F1422FF158A5B42D0E8DB8CB5CDA1742572A487D9401E3400267682B202B746511891C1BAF47F8D25C07F6C39A104696DB51F17C529AD3CABE"
            decryptionKey= "8A9BE8FD67AF6979E7D20198CFEA50DD3D3799C77AF2B72F"
LVL 33

Accepted Solution

raterus earned 2000 total points
ID: 13766299

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Today is the age of broadband.  More and more people are going this route determined to experience the web and it’s multitude of services as quickly and painlessly as possible. Coupled with the move to broadband, people are experiencing the web via …
IntroductionWhile developing web applications, a single page might contain many regions and each region might contain many number of controls with the capability to perform  postback. Many times you might need to perform some action on an ASP.NET po…
Is your OST file inaccessible, Need to transfer OST file from one computer to another? Want to convert OST file to PST? If the answer to any of the above question is yes, then look no further. With the help of Stellar OST to PST Converter, you can e…
Kernel Data Recovery is a renowned Data Recovery solution provider which offers wide range of softwares for both enterprise and home users with its cost-effective solutions. Let's have a quick overview of the journey and data recovery tools range he…
Suggested Courses

615 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question