Forum Discussion
ramann_75062
Nimbostratus
Mar 24, 2009Delete cookie not work
Hi@all,
I use a encrypted cookie. In the response I check the cookie, which is manipulated
if { [HTTP::cookie exists COOID] } {
set decrypted [HTTP::c...
hoolio
Cirrostratus
Mar 25, 2009Hi bjoern,
You would need to set the cookie to expire in the redirect response. In order to do this, you'd need to use HTTP::respond instead of HTTP::redirect so you can add a Set-Cookie header. Here is an example:
HTTP::respond 302 Location "http://newhost.example.com/redirect_location.html" Set-Cookie {cookie_name=null; Path=/; Expires=Thurs, 01-Jan-1970 00:00:00 GMT;}
The path needs to be set in this response with the same path that the original cookie was set with.
I haven't tested this exact command, but I've used similar before.
Aaron
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