CFCOOKIE

Defines cookie variables, including expiration and security options. See the Usage section for important details.

Syntax

<CFCOOKIE NAME="cookie_name"
    VALUE="text"
    EXPIRES="period" 
    SECURE="Yes" or "No"
    PATH="url"
    DOMAIN=".domain">
NAME

Required. The name of the cookie variable.

VALUE

Optional. The value assigned to the cookie variable.

EXPIRES

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.

SECURE

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

PATH

Optional. Specifies ...

Get Sams Teach Yourself ColdFusion® in 21 Days 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.