I have a Windows Azure Website in shared mode.
Now Azure obviously adds two cookies to my web site: WAWebSiteID
and ARRAffinity
.
I learned that those cookies are there to enable sticky sessions with the Application and Request Routing feature (ARR) behind the Azure load balancers.
Nevertheless, my web site does not require sticky sessions, and I don't want to have those cookies around.
First, I never had the slightest idea of sticky sessions crossing my mind, so I wrote the application to scale well with evenly distributed requests on all frontends. Sticky sessions in fact shift the distribution since there are clients doing a lot of requests and clients doing almost none. When only the first request gets distributed and subsequent requests from the same client stick to the same server, this has severe implications on the overall performance of my application.
Secondly, for data privacy reasons I run a cookieless application, and any cookie is considered 'evil'. I know I could delete them with a little bit of javascript, but I don't even want them to be transmitted to the client.
The question is: How can I disable sticky sessions and those two cookies on my Azure website on server side?