JCMATTOS_41723
May 13, 2009Nimbostratus
Problems with persistence and JSESSIONID?
I have gone thru the forums and samples and tried different variations of irules to enable persistence with a JSESSIONID cookie. And I can't seem to get it to stick. I've gone thru packet captures and HTTP analyzers and have confirmed that the cookie is present and being passthru normally, but yet it doesn't seem to stick to one server. We have dual LTM's 8400 with 9.4.3 and we are loadbalancing a multi-tierd webproxy/app (webshpere) thru the F5 which looks something like this: (and an example of the cookie)
Cookie:JSESSIONID=0000Lw0zPkqZ66ejLdPuflVBf3Q:-1
CLIENT
/\
F5
/\
RP1 RP2 (Reverse Proxy Tier)
\ /
F5
/\
AP1 AP2 (Webshpere Application)
I used variations of the JSESSION sample along with others with no luck...Am I missing something? Any help is greatly appreciated? Thx!
when HTTP_REQUEST {
if { [string length [HTTP::cookie exists "JSESSIONID"]] } {
persist uie [HTTP::cookie "JSESSIONID"] 3600
} else {
set jsess [findstr [string tolower [HTTP::path]] "jsessionid=" 11]
if { $jsess != "" } {
persist uie $jsess 3600
}
}
}
when HTTP_RESPONSE {
if { [string length [HTTP::cookie exists "JSESSIONID"]] } {
persist uie [HTTP::cookie "JSESSIONID"] 3600
}
}