Dynamic Cookie Learning on the CSM

Unanswered Question
Jan 21st, 2010
User Badges:

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
  • 2
  • 3
  • 4
  • 5
Overall Rating: 0 (0 ratings)
Loading.
Sean Merrow Fri, 01/29/2010 - 07:25
User Badges:
  • Silver, 250 points or more

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

Actions

This Discussion