01-19-2011 05:46 AM
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
01-19-2011 12:20 PM
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
01-19-2011 11:39 PM
Hallo litrenta,
Thanks for your fast reply,
according the config guide there are two options:
=> 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
01-20-2011 05:45 AM
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 ?.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide