For more information regarding the security incident at F5, the actions we are taking to address it, and our ongoing efforts to protect our customers, click here.

Forum Discussion

Praveen_Chandar's avatar
Praveen_Chandar
Icon for Nimbostratus rankNimbostratus
Mar 12, 2015

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

  • 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
    )