Forum Discussion
Remove Cookie set in HTTP_RESPONSE
I'm trying to remove a cookie in a HTTP_REQUEST that I have already set in a HTTP_RESPONSE. I tried using the below within a HTTP_REQUEST
if {[HTTP::cookie exists "PAASPORTAL"]} {
HTTP::cookie remove "PAASPORTAL"
}
Can you please help with an irule that can remove this cookie?
1 Reply
- Michael_Jenkins
Cirrostratus
If you're trying to remove it from the request before it hits the backend server (or any subsequent iRules), then the command you posted should work.
If you are trying to delete it from the client machine, you'll want to do that in the HTTP_RESPONSE event again and set the cookie to some value like blank or "deleted" (it's arbitrary) and set the expires field to a past value (e.g.
)expires=Thu, 01-Jan-1970 00:00:00 GMT
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* 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