Forum Discussion
AJ_01_135899
Cirrostratus
Jun 15, 2015I did see a prior post about removing it on the response:
https://devcentral.f5.com/questions/irule-for-cookie-removal
It states: "If you want the client to delete a cookie you'd need to tell it to in the response. Using HTTP::cookie remove in HTTP_REQUEST is going to remove the cookie from the request that is proxied to the pool--it wouldn't have any effect on the client."
So, something like:
when HTTP_RESPONSE {
if {[HTTP::cookie exists "PS_TOKEN"] {
if {HTTP::cookie domain "PS_TOKEN" contains "abc.com"}{
HTTP::cookie remove "PS_TOKEN"
}
}
}
Obviously may need to tweak slightly, as I haven't tested it.