Losing session data when switching web servers on Azure web farm with 2 web servers. How can I share the keys with each server?
Our websites were working flawlessly to be exaggerative when they were running on Rackspace. We have since moved to Azure and we are experiencing all kinds of session issues. I believe this is due to Rackspace being configured for Sticky Sessions and Azure not supporting them.
Am I on the right track? And if so, what is a solution for this; - Long Term - Short Term - Immediate
Current Setup Info: InProc session control in web.config on both servers IIS 8 Windows Server 2012 R2 VM's for each webserver (WEB1 & WEB2)
Any further information will be greatly appreciated.
You just have to change the load balance distribution mode of your cloud service to Source IP (aka stick sessions). You have to use powershell:
Detailed references:
http://azure.microsoft.com/blog/2014/10/30/azure-load-balancer-new-distribution-mode/
http://windowsitpro.com/azure/azure-load-balancer-stickiness-options
https://msdn.microsoft.com/en-us/library/azure/dn495126.aspx