Rupa_34586
Dec 31, 2009Nimbostratus
irule is taking wrong cookie
I am using the below irule for cookie based routing.
The irule is not taking the cookie value properly.I am observing cookies on my browser using HTTP Watch pro.
I see JTAP=POD25 in httpwatch pro and in Irule logs i see JTAP=POD2. I am not sure from where the irule is taking the value POD2. Could somebody please tell wheres wrong
if { [HTTP::cookie "JTAP"] ne "" } {
log local0. " Web tier: *** Found JTAP Cookie: [HTTP::cookie JTAP]"
set JTAP [string tolower [getfield [HTTP::cookie "JTAP"] "^" 3]]
pool p_$JTAP
log local0. "Web tier: *** Request went to $JTAP"
}
else {
pool p_default
}
Thanks for your help and have a Happy New Year