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...
Hannes_Rapp_162
Nacreous
Feb 02, 2015 HTTP::respond 302 location "https://www.mydomain.com/" \
Set-Cookie "MY_COOKIE_NAME=path=/; domain=.mydomain.com; Expires=Thu, 01-Jan-1970 00:00:00 GMT"
Use the code above; replace the values as necessary. This will instruct client's web-browser to expire(invalidate) an existing session cookie MY_COOKIE_NAME.
- MDPF52_180608Feb 02, 2015
Nimbostratus
Thank you! Another little question, if i want to do it on multiple cookies, how can i accomplish this ? Thanks in advance, Best Regards, M. - MDPF52_180608Feb 02, 2015
Nimbostratus
Extra info : i have the HttpOnly and Secure flags set on the cookies
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