Defines cookie variables, including expiration and security options.
Other
<cfcookie name="String" [value="String"] [expires="object"] [secure="Boolean"] [path="String"] [domain="String"] />
[] = Optional attribute
| Name | Type | Required | Default | Description |
| name | String | Yes | The name of the cookie variable. | |
| value | String | No | The value assigned to the cookie variable. | |
| expires | object | No | 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 browser. | |
| secure | Boolean | No | Yes or No. Specifies that the variable must transmit securely. If the browser does not support Secure Socket Layer (SSL) security, the cookie is not sent. | |
| path | String | No | ||
| domain | String | No |