Forum Discussion
Praveen_Chandar
Nimbostratus
Mar 12, 2015Remove 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"]} {
...
Michael_Jenkins
Cirrostratus
Mar 13, 2015If 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
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