Sky_News_Dev_85
Dec 31, 2009Nimbostratus
Can'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