My Photo
Name:Rebecca Kim
Location:Etobicoke, Ontario, Canada

Saturday, December 10, 2005

9. How the "cfcookie" Tag Works

Description
Defines cookie variables, including expiration and security options.

category
Variable manipulation tags

Syntax

Usage

Cookies written with cfcookie are written to the cookies.txt file when the browser session ends. Until the browser is closed, the cookie resides in memory. If you do not have an expires attribute in a cfcookie, the cookie exists until the browser is closed. It is never written to the cookies.txt file.

------------------------------------------------------------

AVIS 216 - Web Form + Cookies Assignment
The Web Form + Cookies Assignment was opportunity to create a web page based on working XHTML Form Elements, the "cfmail" tag, Cookies, and the "cfloop" tag.

Each input element had an explanatory text that is marked up using a LABEL tag.

At least two input elements employed COOKIES, so that the Web application could remember who the user was on subsequent visits.


For example,

For the assignment, I used a LABEL tag for three input elements, First Name, Last Name, and E-mail Address, so the Web application can remember who the user is on subsequent visits.




The form submitted to a page called process.cfm.

The process.cfm page was structured, so that it wrote COOKIES as appropriate to the requirements of the Web application.

I understood that the tags store value for FirstName, LastName, and E-mail tags.

0 Comments:

Post a Comment

<< Home