Load Balancing Cookies
Load balancing cookies are small technical files a website uses to make sure your requests keep going to the same server when a site runs on multiple servers behind a load balancer. This keeps your session working consistently, for example so you stay logged in or your actions are not lost as you move around the site. They exist to support the technical operation of the service rather than to track you across sites or for marketing.
Load balancing cookies establish session persistence (also called sticky sessions or session affinity) by allowing a load balancer to correlate a client to a specific backend server across successive requests. The cookie is typically set and managed either by the load balancer itself (load balancer-generated persistence) or by the web application, and its inspection generally requires a Layer 7 (HTTP/HTTPS) load balancer capable of reading and setting cookies. Because these cookies serve a purely technical function required to deliver a service the user has requested, they are generally treated as strictly necessary and, in most EU and UK jurisdictions, may fall within the consent exemption under the ePrivacy Directive and its national implementations for cookies strictly necessary to provide a requested service. This exemption is not automatic: it depends on the cookie's actual purpose and scope, and any personal data processed via such cookies remains subject to the GDPR. Where a load balancing cookie is combined with, or repurposed for, analytics, tracking, or other non-essential functions, the consent exemption would generally not apply. This entry describes the technical role of these cookies and does not resolve the fact-specific classification question, which depends on implementation and on the applicable regulator's guidance in each jurisdiction.
Why it matters
Load balancing cookies are a frequent point of confusion in cookie audits and consent mapping because they are technical infrastructure rather than tracking tools, yet they still involve setting information on a user's device and so fall within the scope of the ePrivacy rules governing storage and access. Privacy teams cataloguing every cookie a site sets need to classify them correctly: mislabelling a load balancing cookie as an analytics or advertising cookie may trigger unnecessary consent prompts, while over-broadly treating any cookie as exempt risks missing cookies that have been repurposed for non-essential functions.
The practical significance is that, in most EU and UK jurisdictions, cookies that are strictly necessary to deliver a service the user has requested may fall within the consent exemption under the ePrivacy Directive and its national implementations. A load balancing cookie whose sole purpose is to keep a user's requests routed to the same backend server generally fits this description. However, the exemption is not automatic and depends on the cookie's actual purpose and scope. Where such a cookie is combined with, or repurposed for, analytics or tracking, the exemption would generally not apply, and getting this determination right matters for both compliance posture and user experience.
Any personal data processed through these cookies remains subject to the GDPR even where the ePrivacy consent exemption applies, so the two regimes must be considered separately. This entry describes the technical role of load balancing cookies and does not resolve the fact-specific classification question, which depends on implementation and on the applicable regulator's guidance in each jurisdiction.
Who it's relevant to
Inside Load Balancing Cookies
Common questions
Answers to the questions practitioners most commonly ask about Load Balancing Cookies.