Forum Discussion
Feb 09, 2011
logging each cookie name failing in logs
Hello all, The below code is throwing an error in the logs: when HTTP_REQUEST { set cookies [HTTP::cookie names] foreach cookie $::cookies { log local0. "Cookie: $...
Feb 09, 2011
Thanks Aaron. If I wanted to delete a cookie from the client machine would I do that in the request or the response function?
Also when I display the list of cookies in the "http_response" I get the expected results in the log, but when I do a check for them using the code below, it doesn't return true and never logs:
when HTTP_RESPONSE {
foreach cookie [HTTP::cookie names] {
log local0. "Cookie name: $cookie"
}
if { ([HTTP::cookie exists "sso"]) and ([HTTP::cookie exists "portal") } {
log local0. "Both portal and sso cookies exist!!!!"
}
}
Let me know your thoughts.
Thanks.
Regards,
TRX
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