Forum Discussion
15 years ago
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: $...
hoolio
Cirrostratus
15 years agoIf you want the client to remove the cookie, you'd need to set the cookie in a response with the expire date in the past:
when HTTP_RESPONSE {
HTTP::cookie insert name "my_cookie_name" value "nada" path "/"
HTTP::cookie expires "my_cookie_name" 0 absolute
}
Aaron