Forum Discussion
gerald_wegener_
Sep 21, 2006Nimbostratus
Hi,
I can't seem to find the correct syntax to get the cookie expiration on a request. It seems like the following should work but it doesn't. The cookie name is stick2. I know for a fact (using http watch) the expiration is set on the incoming request. I've looked through DevCentral but can't find examples for extracting cookie expiration. I can only find the syntax...
when HTTP_REQUEST {
if { [HTTP::cookie exists "stick2"] } {
log local0. "CookieB value is: [HTTP::cookie value "stick2"] expires on: [HTTP::cookie stick2 expires]"
}
}
The cookie exists and I get the cookie value OK but no expiration.
Here is how I set the cookie:
when HTTP_RESPONSE {
HTTP::cookie insert name stick2 value %7cb%7c
HTTP::cookie expires stick2 36000
HTTP::cookie domain stick2 abc.com
}
What am I doing wrong?
Thank You.