Problems with CSS 11503 and Cookie Configuration

Unanswered Question
Jan 19th, 2009

I have the next scenario:

Two servers WAS01 (IP 10.0.0.1) and WAS02 (IP 10.0.0.2), each one with this cookies:

WAS01= Cookie: $Version=0; ASPSESSIONIDQQCBRBTD=KBHBNKBCPMIOPMPPONLGENGO;

WAS02= Cookie: $Version=0; ASPSESSIONIDSSBCRCTC=ELKDELBCNKJHDNLFMIKIOFMD

I need to stuck the clients request based on cookies but the cookie is not fixed, so I need make the sticky based only in the prefix because everything after the "=" sign expires after 10 seconds.

I dont know what to do cause and aditional requirement is that the client need to be sticky as long as the cookie remains active ( 10 secs ).

Thanks a lot for all the help that can bring me.

Fran

I have this problem too.
0 votes
  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 0 (0 ratings)
Loading.
Gilles Dufour Tue, 01/20/2009 - 01:02

Fran,

if these are the only 2 cookie names that will exist, you could use a class-map type http loadbalance like this :

switch/Admin(config-cmap-http-lb)# match http header Cookie header-value ?

Enter http header value (Max Size - 255)

switch/Admin(config-cmap-http-lb)# match http header Cookie header-value .*ASPSESSIONIDQQCBRBTD.*

But if the prefix does change as well, then why not use the cookie insert function from ACE.

ACE can insert its own cookie to guarantee stickyness.

Gilles.

frandeprado Tue, 01/20/2009 - 04:46

Gilles

Thanks a lot for your help, the prefix will be ever the same for a server (and different between then), i am going to probe the sticky in the http header as you recommended me, but i still got 2 questions.

I need that when a client make a request against a server, stuck in there but if that server is going down stuck to another, is that possible?

other question is

The CSS can insert their own cookies?? i am totally ignorant :)

Thanks A lot

Fran

Gilles Dufour Tue, 01/20/2009 - 05:37

Fran,

for some reason I thought it was ACE not CSS.

ACE can't learn dynamic cookie.

So, simply ignore my recommendation.

I would suggest to use CSS function to insert its own cookie.

Just configure 'advanced-balance arrowpoint-cookie' and 'url "/*"' in your content rule config.

Stickyness will work.

Gilles.

frandeprado Tue, 01/20/2009 - 05:49

Gilles

I already probed:

1.- in the content rule the advanced-balance Cookie and nothing, there is no match in sticky table and use the balance round robin (default), the client accepts cookies I checked that first.

2.- i put in the content rule the command string prefix $Version=0; ASPSESSIONIDQ and in the services the rest of the prefix but nothing.

3.- i use the string range in the content rule to match "ASPSESSIONID" and nothing.

the real thing is i have no idea of what to do

Fran

Gilles Dufour Tue, 01/20/2009 - 08:44

Fran,

see my previous post.

The CAN'T LEARN dynamic cookie.

So just go for cookie created by the CSS with the arrowpoint-cookie advanced-balance method.

gilles.

Actions

This Discussion