Forum Discussion
MDPF52_180608
Nimbostratus
Feb 02, 2015iRule delete cookie value on a 302 redirect
Hello DevCentral Community,
I want to ask you how I can re-initialize a cookie in order to clean the value in it, like:
If i click on the logout URI my cookie "Cookie_Name" value will chang...
MDPF52_180608
Nimbostratus
Feb 02, 2015Sorry but, when try the redirect it says Error 404 not found, how i can verify if my set cookie instruction is wrong and this is the cause of the error 404 ?
What i should expect on the cookie ? Does the cookie should disappear ?
Thanks in advance ,
M.
- Hannes_RappFeb 02, 2015
Nimbostratus
You are telling the web browser to invalidate the cookies with your HTTP 302 response (originating from F5). If the redirect destination replies back with HTTP 404, it does not matter - the cookies are already invalidated by then. However, for your solution to work, you must verify that the redirect destination does not re-insert the same cookies you've just invalidated. Look "Set-Cookie" headers in the HTTP 404 response. I recommend Chrome DEV tools, or Firefox's Firebug AddOn for the verification purpose.
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