Microsoft Network Load Balacing: single affinity across SSL and HTTP ports

Posted on 2007-08-07
Last Modified: 2013-11-05
The login page of my web application is under SSL. As soon as a user has logged on, I don't need SSL any more and I redirect him/her to a non-SSL page.

However, it seems that nlb doesn't handle single affinity across different ports. So my user logs in on a server under SSL on port 443, but then gets redirected to another server when it switches to non-SSL on port 80.

This way my Session variables are lost.

Is there a way to handle affinity across SSL and HTTP, or I have to rewrite
the login procedure avoiding the user of Session variables?

Question by:cip
    LVL 22

    Expert Comment

    You are correct ... session variables are server specific, at least with IIS.
    I don't know if you can handle this with a cookie or not since you are changing servers.  You might need to pass the authentication paramter to the new server to set a cookie or sessions variable once redirected.
    LVL 10

    Accepted Solution

    If you are using check this article

    "HOW TO: Set Up Multi-Server ASP.NET Web Applications and Web Services"

    LVL 1

    Author Comment

    I knew that using i can hold my session variables in a process shared among different servers or in sql server. I was hoping for a faster way to configure the network load balacing cluster but unfortunately it seems that it's not possible.

    Thanks for your help.

    Featured Post

    PRTG Network Monitor: Intuitive Network Monitoring

    Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

    Join & Write a Comment

    A quick step-by-step overview of installing and configuring Carbonite Server Backup.
    Learn about cloud computing and its benefits for small business owners.
    Here's a very brief overview of the methods PRTG Network Monitor ( offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
    In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor ( If you're interested in additional methods for monitoring bandwidt…

    745 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

    Need Help in Real-Time?

    Connect with top rated Experts

    18 Experts available now in Live!

    Get 1:1 Help Now