Edit

Share via


Configure Azure Load Balancer for sticky sessions

The purpose of this post is to describe how we can configure a sticky session on an Azure Load Balancer and explain what a sticky session is in simple terms.

Sticky sessions

When a client starts a session in one of the web servers, session stays in that specific server.

stickysessions

Non-Sticky Sessions

In a Non-sticky Session example. session are dispatched randomly , depending on the load balancing policy. nonstickysessions

Configure Azure Load Balancer for sticky sessions

In the following image we can see sticky session configuration from Azure Portal.

loadbalancersetting