Forum Discussion
Sky_News_Dev_85
Nimbostratus
Dec 31, 2009Can't remove session cookie with our iRule
Hi,
we are running BIG-IP 9.4.5 and we are using iRule to insert and then remove a specific cookie. The addition (seesion) works great but the iRule to remove the cookie simply does not work.
The iRules we have in place looks like:
Adding Cookie
when HTTP_RESPONSE {
if {[HTTP::header exists X-cookie ]}{
HTTP::cookie insert name "cookie" value [HTTP::header value "X-cookie"]
}
}
Removing Cookie
when HTTP_RESPONSE {
if {[HTTP::header exists X-cookieRemove]}{
remove the at cookie
HTTP::cookie remove "cookie"
}
}
I know that the rule for the header works, i.e. it can find the X-cookieRemove but somehow it does not seem to find the cookie but I can see the cookie using firebug.
Any ideas?
Regards
Andrea
- hoolio
Cirrostratus
Hi Andrea, - Sky_News_Dev_85
Nimbostratus
Hi, - hoolio
Cirrostratus
Thanks for clarifying. Can you add logging to the iRule:Removing Cookie when HTTP_RESPONSE { log local0. "\[HTTP::header exists X-cookieRemove\]: [HTTP::header exists X-cookieRemove];\ \[HTTP::cookie \"cookie\"\]: [HTTP::cookie "cookie"]" if {[HTTP::header exists X-cookieRemove]}{ remove the at cookie HTTP::cookie remove "cookie" } log local0. "\[HTTP::cookie \"cookie\"\]: [HTTP::cookie "cookie"]" }
- Rick_Thompson_7
Nimbostratus
This is the output of the log file... - hoolio
Cirrostratus
Hi Rick,
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