Forum Discussion
JosephT
Nimbostratus
Jul 22, 2008Stripping cookies on the http response
I need to setup an irule to remove one or more cookies on the response back to the client.
To start, I'm trying to just delete all cookies by trying this this:
when HTTP_...
JosephT
Nimbostratus
Jul 23, 2008CMBHATT, thanks for the reply. After speaking to some others, I learned that the "HTTP:cookie remove xxxx would not work with the HTTP_RESPONSE.
I also learned that the Cookie header is sent by clients on a request, and the Set-Cookie header is sent by the server on the response. What I actually needed to do was delete the Set-Cookie on the response.
My code above would have worked fine to delete cookies if I had used http_request
But in order to delete thet Set-Cookie response from the server, this is the code I used which worked great:
when HTTP_RESPONSE {
HTTP::header remove Set-Cookie
}
Thanks again for your effort!
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
