Forum Discussion
Chris_Miller
Altostratus
Apr 22, 2010iRule for Cookie Removal
I have 2 DCs fronted by a software GTM solution. When a user makes a request, GTM checks to see if they have a "DC" cookie. If they don't, it round robins the request. In the event that DC1 gets the r...
hoolio
Cirrostratus
Apr 22, 2010If 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.
Can you try this?
when HTTP_REQUEST {
if {[HTTP::cookie "DC"] eq "1"}{
set remove_cookies 1
} else {
set remove_cookies 0
}
}
when HTTP_RESPONSE {
if {$remove_cookies}{
HTTP::cookie remove "DC"
HTTP::cookie remove "server"
}
}
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