Forum Discussion

awired_106663's avatar
awired_106663
Icon for Nimbostratus rankNimbostratus
Jul 06, 2007

Where are cookies stored?

Hello forum,

 

Can someone tell me if cookies are supposed to be stored in a file on client, when using following (partial) code?

 

Or is the result of this command a session cookie, stored in client memory?

 

 

when HTTP_RESPONSE {

 

log local0. "Start HTTP Response"

 

insert cookie if needed

 

if {$need_cookie == 1} {

 

HTTP::cookie insert name "Traffic" value $client_id

 

HTTP::cookie maxage "Traffic" 180

 

}

 

}

 

 

Many thanks!!

 

Jan

1 Reply

  • When using the 'maxage' parameter in a Set-Cookie header the result depends, unfortunately, on the browser..

     

     

    From memory - IE doesn't store them to a file and treats them as a session cookie with an explicit expiry time, while Firefox does write them to a file.

     

     

    The RFC leaves it rather up to the reader to decide how to handle them, so it's anyones guess as to how other browsers (and, indeed, future versions of the same browser) will handle it.