CFCOOKIE

"-->
 <cfcookie          name = "cookie_name"          value = "text"          expires = "period"          secure = "Yes" or "No"          path = "url"          domain = ".domain"> 

Description

Defines web browser cookie variables, including expiration and security options.

Attributes

name (Required)

Name of cookie.

value (Optional)

Value assigned to cookie.

expires (Optional)

Handles the expiration of the cookie. Can be a date (for example, 12/20/02) or a number of days (for example, 10 or 100).

  • now. Deletes cookie from client cookie.txt file.

  • never. Never deletes cookie from client; writes cookie data to cookie.txt file.

secure (Optional)

The cookie will not be sent if the browser does not support Secure Sockets Layer (SSL). If Yes, variable must be transmitted securely.

path (Optional)

URL to which the cookie applies, or use multiple CFCOOKIE tags to have multiple URLS.

domain (Required)

This attribute is required in conjunction with the path attribute. The domain must start with a period and can be subdomains if desired.



Inside ColdFusion MX
Inside Coldfusion MX
ISBN: 0735713049
EAN: 2147483647
Year: 2005
Pages: 579

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net