Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. If you'd prefer to explore, try our test area to get started. And see here for current known issues.

New Member

Cookie based Load Balancing

If 3 Real servers in a non-load balancing environmet are setting session cookies with diffrenet cookie names e.g.

server1 response

set-Cookie: SESSIDSAAAAAA=DMNNNELCECNCKDIIDCPOIMGG

Server2 response

set-Cookie: SESSIDSBBBBBB=DAAMMNELCECNCKPYTWPOIPOP

Server3 response

set-Cookie: SESSIDSCCCCCC=POHYTUOIPOPPLKJHTERIQOKJ

then how can CSM be configured with cookie based stickiness.

I tried cookie insert on CSM with NULL value Assigned to "COOKIE_INSERT_EXPIRATION_DATE".

It resulted in two set cookie responses (one from server and one from CSM).

I am wondering how csm will react ( cookie insert is used) if client request carries two cookie name-value pairs.

clients are behind megaproxy so cookie based stickiness is needed.

Thanks

1 REPLY
Cisco Employee

Re: Cookie based Load Balancing

if you look into a http client request you will see that many times there are more than 1 cookies.

The most important is to make sure the CSM insert a cookie with a different name.

Create your own name.

The client will receive both the csm cookie and the server cookie and will send both when opening a new connection.

The CSM is able to locate its own cookie in the list and do the stickyness.

Gilles.

300
Views
3
Helpful
1
Replies