Posted on: 7/23/2012 5:58:08 AM | Views : 264

I have a asp.net website that is deployed on two servers. In front of the servers there's a load balancer that distribute requests to the two servers. To store the session we use SQL Server. My problem is that if the user go to the page, press a button and then by the load balancer happens to be routed to the other server that request wont be recognized as a postback? Why is that, shouldn't it work just fine even with postbacks as long as the servers share the same machine keys?
Details:
Both servers have the same machine key configured, and I verified that the actual session is the same on both servers by a small debug page I made that sets and prints out a session object.
As long as I stay on the same server everything works as expected.
When I run the page locally using the same machine key (first request to web farm, then route second button click to localhost by fiddler), I get the same behaviour
...

Go to the complete details ...