bilsch_10068
Jan 02, 2013Nimbostratus
HTTP::cookie in HTTP_RESPONSE
Ok,
so I have a set-cookie line which an app is setting and I need to re-format the cookie set ( bugs, yay ). Lets say the cookie is "foo"
I would expect that this would work but I can verify by looking at the responses it is not working.
when HTTP_RESPONSE {
if { [HTTP::cookie exists "foo"] } {
HTTP::cookie remove foo
}
}
There is a header similar to:
Set-Cookie: foo=;Version=0;Comment="foo Cookie";Path=/foo;Max-Age=31536000;Secure; Expires=Sat, 01-Jan-2012 00:000:00; HTTPOnly
Any idea why doing a cookie remove ( to re-add correctly later ) would not work in a response? Do I need to do this in response_data? ( I thought that was just for the body of the response which this is not, this is in headers.... )