Forum Discussion
Rupa_34586
Nimbostratus
Dec 30, 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 http...
hoolio
Cirrostratus
Dec 31, 2009Hi Rupa,
The iRule looks straightforward enough. Can you post a sample from the ltm log for a failure?
Here is a quick test showing the parsing working correctly:
when RULE_INIT {
set cookie "abc^def^ghi"
log local0. " \$cookie: $cookie; \[getfield $cookie \"^\" 3\]: [getfield $cookie "^" 3]"
}
And the ltm log output:
Rule : $cookie: abc^def^ghi; [getfield abc^def^ghi "^" 3]: ghi
Thanks,
Aaron
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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