Solved

Load balancing ASP.NET WIndows 2003 while preserving session state.

Posted on 2008-10-22
4
1,330 Views
Last Modified: 2013-12-02
I have an interesting question.

We recently setup a web farm using 2 web servers and 1 database server on a Zeus shared load balancer using round robin traffic shaping. Our sessions are stored via cookie on the user's local machine. The problem we're running into is, given that the load balancer treats HTTP and HTTPS as separate requests, sometimes a user may start at one machine, and end up at the second machine when they call up an HTTPS page, or vice versa.

I know the best option is to store session data in the database to avoid the issues with HTTP/HTTPS, but are there any other options? For example, would Windows NLB solution be a viable option to preserve session state, or are there other load balancers that can do some form of cookie based load balancing, or..

Essentially, I'm trying to determine if there's an option to properly load balance 2 Windows Server 2003 Standard web servers while avoiding the issues caused with changing servers during HTTP/HTTPS switchovers, etc.

If that makes sense.
0
Comment
Question by:jmoriarty
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
4 Comments
 
LVL 51

Assisted Solution

by:Ted Bouskill
Ted Bouskill earned 150 total points
ID: 22792916
Round robin is not a good solution.  Other than the problems you are having there is also an issue that if you need to reboot one server (to install an update) there is issues as well.

With Windows NLB you can create sticky sessions using Affinity.  You don't have to change anything in your application and it 'Works'!
0
 
LVL 3

Assisted Solution

by:mickdoc
mickdoc earned 150 total points
ID: 22797022
Windows Load Balancing is your best bet then.

By default your affinity (stickiness for another word) is set to "Single" (default setting). This means that your subnet that you are connecting from will always (well, pretty much always) hit the same webserver in the cluster unless that server is out for some reason.

This will allow your session state to stay on the one server.
0
 

Accepted Solution

by:
CarlosAfonso earned 200 total points
ID: 22914529
Windows Load Balance can be your best solution, but it have some limitations, it works only when all servers are on the same subnet (same mask) you ill set a VIP (virtual IP) then your DNS points only to the VIP.

If I whant to load balance beteen 2 or more datacenters for geographic and network redundancy, Windows load Balance do not solve my problem.

Then DNS round robin and ASP.NET session server or SQL session managemnt will be the right solution for your web application.
0
 

Author Comment

by:jmoriarty
ID: 23009171
Thank you for all the responses. We're just going to end up going the database session route I think, that seems to have the best long term redundancy/capability.

Thanks!
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

ADCs have gained traction within the last decade, largely due to increased demand for legacy load balancing appliances to handle more advanced application delivery requirements and improve application performance.
This article provides a convenient collection of links to Microsoft provided Security Patches for operating systems that have reached their End of Life support cycle. Included operating systems covered by this article are Windows XP,  Windows Server…
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…

717 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