cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
661
Views
0
Helpful
1
Replies

Dynamic Cookie Learning on the CSM

sgonsalv
Level 1
Level 1

Hi Guys,

I'm looking to configure dynamic cookie learning on the CSM such that the CSM learns the value of the Cookie set by the server.  I wanted to know how this is configured - i'm assuming it is done as follows, for a case where the server sets the Cookie name as JSESSIONID:

sticky 100 cookie JSESSIONID timeout 30

Is this correct?

thanks

Sheldon

1 Reply 1

Sean Merrow
Level 4
Level 4

Hi Sheldon,

You are correct, however, in your example configuration, the entire cookie value would need to remain static.  Most times with JSESSIONID, I see customer's specifying where to look for the static portion of the cookie.  For example, when servers return the JSESSIONID, part of the cookie will always be the same for the specific server, but the rest of it will change.


sticky 100 cookie JSESSIONID timeout 30

  cookie offset 0 length 8

 vserver VSERVER
  virtual 10.10.10.1 tcp WWW
  sticky 5 group 100
  serverfarm REAL_SERVERS
  persistent rebalance
  inservice

The above example shows how to do it if you want to do sticky on the first 8 characters of the JSESSIONID cookie value.  Another common set of values is:

cookie offset 53 length 10

Hope this helps.

Sean

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: