cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
519
Views
0
Helpful
5
Replies

Problems with CSS 11503 and Cookie Configuration

frandeprado
Level 1
Level 1

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

5 Replies 5

Gilles Dufour
Cisco Employee
Cisco Employee

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.

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

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.

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

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.