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::cookie decrypt "COOID" "1234"]
if { ($decrypted eq "") } {
Cookie wasn't encrypted, delete it
HTTP::cookie remove "COOID"
log local0. "COOKIE_CHECK: Cookie was changed... [IP::client_addr]"
HTTP::redirect "http://redirect.to.nowhere/"
}
}
When I check the cookies in my brwoser (FF3.0) - the cookie was not removed. What do I wrong.
Please help.
THanks
bjoern
- dennypayne
Employee
Looks OK at first glance...I'm assuming you are calling this code in the HTTP_RESPONSE event? Do you ever see the COOKIE_CHECK message in the logs? You might try adding some more levels of logging to make sure your conditions are actually firing. - ramann_75062
Nimbostratus
yes, its in the HTTP_RESPONSE part and i see the COOKIE_CHECK message in the logs. - hoolio
Cirrostratus
Hi bjoern,
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