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]]
Looking at your irule it appears that there are several items in JTAP? Something like “JTAP=value^value2^value3” and you are trying to extra the 3rd field? Just need to understand why you needed the getfield