Forum Discussion
Rupa_34586
Nimbostratus
Dec 31, 2009irule 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
- The_Bhattman
Nimbostratus
Hi Rupa, - Rupa_34586
Nimbostratus
Hi Bhattman, - hoolio
Cirrostratus
Hi Rupa,when RULE_INIT { set cookie "abc^def^ghi" log local0. " \$cookie: $cookie; \[getfield $cookie \"^\" 3\]: [getfield $cookie "^" 3]" }
- hoolio
Cirrostratus
Hi Rupa, - Rupa_34586
Nimbostratus
thanks for your reply, - hoolio
Cirrostratus
Glad you figured out the problem. Thanks for clarifying it.
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects