Hi Mark,
I believe you could use an iRule to do it, by first setting a variable that indicates that it needs to 'unset cookies', and then inserting the cookies in the HTTP_RESPONSE_RELEASE event.
I'm not sure in which ASM event you'd be setting the 'need_to_unset_cookies' variable to 1, but once you found it, try something like this:
when HTTP_RESPONSE_RELEASE {
if { $need_to_unset_cookies == 1 } {
List the cookies
set cookies [HTTP::header values "Set-Cookie"]
Remove existing Set-Cookie headers
HTTP::header remove "Set-Cookie"
Run through the list, reinserting only those you want
foreach cookie $cookies {
if { !($cookie contains "___utmvc") } {
HTTP::header insert "Set-Cookie" $cookie
}
}
Insert your custom version of the cookies you wanted to change
HTTP::header insert "Set-Cookie" "___utmvc=deleted; domain=.foo.bar; path=/; expires=Thu, 01 Jan 1970 00:00:00 GMT"
}
}