Sessions Do Not Work on Web Server Farms

Sessions Do Not Work on Web Server Farms


How do sessions work with clustered NT servers? How do you make use of clustering technology if an NT machine goes down along with its sessions? Is NT smart enough to know to replicate these sessions in other servers and route all requests to these other servers?


Sessions are specific to a Web server and are not supported across machines. When you use clustered NT servers (I assume you mean a Web server farm, where a number of servers having identical Web content serve the same domain name URL), you cannot use session variables. In a Web farm scenario, a load-balancing device?either a hardware or software component?intercepts the request for a Web page and passes it on to one of the available Web servers based on which server has the least load. This way, even if a Web server goes down, the other servers will absorb the load.

If you want to use Web farms efficiently, you will need to create stateless applications with no session variables. If you do wish to use session variables then you will need to make sure that the load-balancing device that you have (hardware or software) always routes the browser request to the same machine so that the session can be maintained. But that defeats the whole purpose of creating a server farm. If that particular machine goes down, for that user, your Web site has gone down. Bottom line: start thinking, designing, and developing stateless applications.

Share the Post:
XDR solutions

The Benefits of Using XDR Solutions

Cybercriminals constantly adapt their strategies, developing newer, more powerful, and intelligent ways to attack your network. Since security professionals must innovate as well, more conventional endpoint detection solutions have evolved

AI is revolutionizing fraud detection

How AI is Revolutionizing Fraud Detection

Artificial intelligence – commonly known as AI – means a form of technology with multiple uses. As a result, it has become extremely valuable to a number of businesses across

AI innovation

Companies Leading AI Innovation in 2023

Artificial intelligence (AI) has been transforming industries and revolutionizing business operations. AI’s potential to enhance efficiency and productivity has become crucial to many businesses. As we move into 2023, several

data fivetran pricing

Fivetran Pricing Explained

One of the biggest trends of the 21st century is the massive surge in analytics. Analytics is the process of utilizing data to drive future decision-making. With so much of

kubernetes logging

Kubernetes Logging: What You Need to Know

Kubernetes from Google is one of the most popular open-source and free container management solutions made to make managing and deploying applications easier. It has a solid architecture that makes

ransomware cyber attack

Why Is Ransomware Such a Major Threat?

One of the most significant cyber threats faced by modern organizations is a ransomware attack. Ransomware attacks have grown in both sophistication and frequency over the past few years, forcing

data dictionary

Tools You Need to Make a Data Dictionary

Data dictionaries are crucial for organizations of all sizes that deal with large amounts of data. they are centralized repositories of all the data in organizations, including metadata such as