It converts it to seconds.
The cookies are sent through the HTTP headers. Cold Fusion converts the
date that you give it to the number of seconds between the servers date and
the expiration date you set. It then sends it in the HTTP headers.
At 09:52 AM 4/10/2001 -0700, you wrote:
> Does anybody know how CF handles the expiration of cookies if you
> specify
>the number of days before a cookie expires? Does it set the expiration date
>of the cookie based on the date on the server or the date on the client's
>machine? For example, lets say I set a cookie using the following code...
>
><cfcookie name="foo" value="bar" expires="3" domain=".foo.com">
>
>My server's date is 4/10/2001 and the client has changed their date to
>4/17/2001 for some reason. Is the cookie even saved on the client's
>machine?? I did a quick test and it looks like the cookie is based on the
>server's date, but I am curious to find out if this is the case across all
>browsers.
>
>Thanks in advance,
> Mike
>
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists