ACE: new stiky cookie inserted for different URL?

Answered Question
Oct 8th, 2008

I have sticky cookies set (cookie insert) and http persistence rebalance on. The virtual server is made of a group of three real http servers.


The DNS name of the virtual server is for example "vhost.domain.com".


If I browse (from the internal network) to "http://vhost/" my session is stuck to a real server using cookie stickiness. My question is, when I click a link which is fully qualified e.g. "http://vhost.domain.com/newpage.html" is a stickiness maintained or as the http header has changed is it seen as a new session and potentially sending me to a different real server?

Correct Answer by Gilles Dufour about 8 years 4 months ago

ACE doesn't care about the url.

It will simply look for the presence of the cookie.

If the cookie is there, you will stick to the same rserver.

If not, this is considered a new connection and the request is loadbalanced.


So, it all depends if your browser consider that vhost and vhost.domain.com are the same because the cookie is associated to a domain.

Normally it should consider them the same.


Gilles.

  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 5 (1 ratings)
Loading.
Correct Answer
Gilles Dufour Wed, 10/08/2008 - 01:17

ACE doesn't care about the url.

It will simply look for the presence of the cookie.

If the cookie is there, you will stick to the same rserver.

If not, this is considered a new connection and the request is loadbalanced.


So, it all depends if your browser consider that vhost and vhost.domain.com are the same because the cookie is associated to a domain.

Normally it should consider them the same.


Gilles.

isa-aston-03 Wed, 10/08/2008 - 02:39

Thanks for the fast response Gilles. I was kind of hoping that would be the answer.


best regards,

Phil.


Actions

This Discussion