Forum Discussion
lbong_53781
Nimbostratus
Oct 01, 2009HTTP::COOKIE not working as expected
I am running LTM 10.0.1
I have the following iRule and run into some issues when there are multiple cookie variable in the header. The Rule seems to only look at the last "Cooki...
hoolio
Cirrostratus
Oct 05, 2009Sorry... I misread your post. On 10.0.1, the cookie value seems to work:
when HTTP_REQUEST {
HTTP::cookie insert name cookie1 value value1
HTTP::cookie insert name cookie2 value value2
if {[HTTP::cookie exists cookie1]}{
log local0. "cookie1 exists"
} else {
log local0. "cookie1 does not exist"
}
if {[HTTP::cookie exists cookie2]}{
log local0. "cookie2 exists"
} else {
log local0. "cookie2 does not exist"
}
log local0. "Cookie names ([HTTP::cookie names])"
foreach cookie [HTTP::cookie names] {
log local0. "\[HTTP::cookie value $cookie\]: [HTTP::cookie value $cookie]"
}
}
: cookie1 exists
: cookie2 exists
: Cookie names (cookie1 cookie2)
: [HTTP::cookie value cookie1]: value1
: [HTTP::cookie value cookie2]: value2
Can you add logging to your iRule and post the results from HTTP::cookie exists "cookie_name" and HTTP::cookie value "cookie_name"?
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