Forum Discussion
hooleylist
Oct 25, 2010Cirrostratus
Hi Angelo,
I would be surprised if using HTTP::cookie to set the domain on a cookie would cause the cookie to "disappear" from the response. Can you add a log statement before and after the HTTP::cookie command to log the Set-Cookie header values:
when HTTP_RESPONSE {
log local0. "[IP::client_addr]:[TCP::client_port]: Pre Set-Cookies: [HTTP::header values Set-Cookie]"
Check if the persistence cookie exists in the response
if {[HTTP::cookie exists "My_cookie"]} {
set the domain attribute on the persistence cookie
HTTP::cookie domain "My_cookie" ".mydomain.com"
log local0. "[IP::client_addr]:[TCP::client_port]: Modified domain on My_cookie"
}
log local0. "[IP::client_addr]:[TCP::client_port]: Post Set-Cookies: [HTTP::header values Set-Cookie]"
}
Aaron