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:
Share on facebook
Share on twitter
Share on linkedin


The Latest

microsoft careers

Top Careers at Microsoft

Microsoft has gained its position as one of the top companies in the world, and Microsoft careers are flourishing. This multinational company is efficiently developing popular software and computers with other consumer electronics. It is a dream come true for so many people to acquire a high paid, high-prestige job

your company's audio

4 Areas of Your Company Where Your Audio Really Matters

Your company probably relies on audio more than you realize. Whether you’re creating a spoken text message to a colleague or giving a speech, you want your audio to shine. Otherwise, you could cause avoidable friction points and potentially hurt your brand reputation. For example, let’s say you create a

chrome os developer mode

How to Turn on Chrome OS Developer Mode

Google’s Chrome OS is a popular operating system that is widely used on Chromebooks and other devices. While it is designed to be simple and user-friendly, there are times when users may want to access additional features and functionality. One way to do this is by turning on Chrome OS