<CFCOOKIE NAME="cookie_name" VALUE="text" EXPIRES="period" SECURE="Yes" or "No" PATH="url" DOMAIN=".domain">
Defines cookie variables, including expiration and security options.
Required. The name of the cookie variable.
Optional. The value assigned to the cookie variable.
Optional. Schedules the expiration of a cookie variable. Can be specified as a date (as in, 10/09/97), number of days (as in, 10, 100), NOW, or NEVER. Using NOW effectively deletes the cookie from the client's browser.
Optional. Indicates the variable has to transmit securely. If the browser does not support Secure Socket Layer (SSL) security, the cookie is not sent.
Optional. Specifies the URL within the specified domain to which this cookie applies:
PATH="/services/login"
Note: If you specify a path, you must also specify a value for the DOMAIN attribute.
Specifies the domain for which the cookie is valid and to which the cookie content can be sent. An explicitly specified domain must always start with a dot. This can be a subdomain, in which case the valid domains will be any domain names ending in this string.
For domain names ending in country codes (such as .jp
, .us
), the subdomain
specification must contain at least three periods, for example, .mongo.stateu.us
.
In the case of special top level domains, only two periods are needed, as in
.allaire.com
.
When specifying a PATH value, you must include a valid DOMAIN.
Separate multiple entries with a semicolon ( ; ).