CFCOOKIE

Defines cookie variables, including expiration and security options.

CFCOOKIE
Attribute

Description

NAME

Required. The name of the cookie variable.

VALUE

Required. The value assigned to the cookie variable.

EXPIRES

Schedules the expiration of a cookie variable. Can be specified as a date (e.g., 10/09/96), number of days (e.g., 10, 100), NOW, or NEVER. Using NOW effectively deletes the cookie from the clientÆs browser. If omitted, the cookie exists only as long as the client browser is open.

SECURE

Optional. Indicates the variable has to transmit securely. If the browser does not support Secure Socket Layer (SSL) security, then the cookie is not sent.

The cookie does not get written to the cookies.txt file until the browser session is ended. Until the browser session ends, the cookie resides only in memory.

Example

<CFCOOKIE NAME="Client_ID" VALUE="#Client_ID#">