Name
CFCOOKIE
Synopsis
<CFCOOKIE>
Writes a cookie to the user’s browser.
Attributes
-
NAME="
cookie_name
"
Name of the cookie to write. Required.
-
VALUE="
value_of_cookie
"
The value to assign the cookie. Required.
-
PATH="
URLs
"
The URLs in
DOMAIN
that the cookie applies to. Multiple entries can be separated by semicolons. Optional.-
DOMAIN="
domains
"
The domain for which the cookie can be read and written. Entries must always start with a dot. For example,
DOMAIN=".oreilly.com"
is a valid entry. Multiple entries may be separated by semicolons. Optional.-
EXPIRES="
time_period
"
The cookie’s expiration date. May be specified as a date, number of days,
Now
, orNever
. Optional.-
SECURE="Yes|No"
Whether the cookie must be transmitted securely via SSL. Optional. The default is
No
.
Get Programming ColdFusion now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.