Hi,
I'm currently using a cookie to handle sticky sessions in my haproxy
setup, but I'm having trouble setting the domain on the cookie. For most
cases, I need to hardcode the cookie so that it applies across our main
domain and any subdomains, like so:
cookie BACKENDID insert indirect domain .domain.com
However, we have some sites that are on completely different domains,
and at the moment that results in them not having a cookie set at all,
since the browsers are rejecting this cookie due to the domain name
mismatch.
Is there a way that I can set the cookie's domain dynamically to handle
both of these cases?
Thanks
Leigh