cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1691
Views
0
Helpful
3
Replies

URL cookie

Hallo,

we have some trouble with our sticky configuration" on an ACE Module.

We would like to do session persistence on an URL cookie with the name jsessionid.

now, I found a presentation about HTTP cookie troubleshooting with following:

=> If the cookie is not found, then the ACE looks for a string in the URL, starting with one of the characters /?&#+ and
followed by a "=", then parses that value.

=> Our URL: https://www-testtest.de/test/index.do;jsessionid=B05404082849E51068A764120663B36E-!server=1

=> the cookie starts with a ";" Could this be our problem?

=> If yes, is it possible to configure the ACE to look also for the ";" string.

The sticky configuration part looks like the following,

service-policy input pmap_TEST
policy-map multi-match pmap_TEST
  class cmap-WWW_HTTPs
    loadbalance vip inservice
    loadbalance policy HTTPs-sticky
    loadbalance vip icmp-reply
    ssl-proxy server ssl-proxy_TFU-3
    !
    class-map match-any cmap-WWW_HTTPs
  2 match virtual-address 1.2.3.4 tcp eq https
 
  policy-map type loadbalance http first-match HTTPs-sticky
  class class-default
    sticky-serverfarm sticky-cookie
    action actlist_HTTPMODIFY-http_https
 
  sticky http-cookie jsessionid sticky-cookie
  cookie offset 0 length 42
  cookie secondary jsessionid
  timeout 35
  replicate sticky
  serverfarm sfarm_Test

best regards

Bernd

3 Replies 3

litrenta
Level 3
Level 3

You need to configure an http parameter map to add ; to secondary cookie delimiters for example

parameter-map type http map1

secondary-cookie-delimiters ;!@#?  note no space put each delimiter character in

then apply

policy-map multi-match pmap_TEST
  class cmap-WWW_HTTPs
    loadbalance vip inservice
    loadbalance policy HTTPs-sticky
    loadbalance vip icmp-reply
    ssl-proxy server ssl-proxy_TFU-3

   appl-parameter http advanced-options map1

Hallo litrenta,

Thanks for your fast reply,

according the config guide there are two options:

http://www.cisco.com/en/US/docs/interfaces_modules/services_modules/ace/vA2_3_0/configuration/slb/guide/classlb.html#wp1245246

=> Defining URL Delimiters
=> Defining the secondary cookie start


our URL cookie starts with an ";" so shouldn't we use "set secondary-cookie-start" instead of the "set secondary-cookie-delimiters " command, or will we have the some result with both commands?
Regards
bhoehenberger

yes you would change start to ; (it is usually ? ) and then make sure delimiter has ! so you don't pick up the second parameter.

But you need to be really careful with this since ? is almost universally used as beginning of parameters in url if later you send url in this connection with ? followed by parameters and you are parsing urls ace will parse all of the stuff after ?.

Review Cisco Networking for a $25 gift card