Cloudflare Cache, Azure Load Balancer and Session Persistence

Hello Community,

I have configured a Azure Load Balancer with the session persistence (Client IP and protocol), where the origin server responds always the calls from the website. My application worked perfectly at this point. When a user is authenticated the server will recognize the person, and respond with personalized information because it has all the information of the customer all the time in the same server.

The problem happens when I configured the Cache from Cloudflare, now different servers are responding the ajax call and because the other server doesn’t know that the user has been authenticated, the response from the ajax call is not the correct one. The actual information is for unrecognized clients, when the expected is personalized content.

Is there a configuration that I have to do in cloudflare, to respect the session persistence.

Carlos Vazquez

This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.