Adobe 38043740 - ColdFusion Standard - Mac Development Manual page 62

Developing applications
Hide thumbs Also See for 38043740 - ColdFusion Standard - Mac:
Table of Contents

Advertisement

DEVELOPING COLDFUSION 9 APPLICATIONS
The CFML Programming Language
Scope
Description
Client
Contains variables that are associated with one client. Client variables let you maintain state as a user moves from
page to page in an application, and are available across browser sessions. By default, Client variables are stored in
the system registry, but you can store them in a cookie or a database. Client variables cannot be complex data
types and can include periods in their names. For more information, see
page 301.
Cookie
Contains variables maintained in a user's browser as cookies. Cookies are typically stored in a file on the browser,
so they are available across browser sessions and applications. You can create memory-only Cookie variables,
which are not available after the user closes the browser. Cookie scope variable names can include periods.
Flash
Variables sent by a SWF movie to ColdFusion and returned by ColdFusion to the movie. For more information, see
"Using the Flash Remoting
Form
Contains variables passed from a Form page to its action page as the result of submitting the form. (If you use the
HTML
Formatting
Local (function local)
Contains variables that are declared inside a user-defined function or ColdFusion component method and exist
only while a function executes. For more information, see
page 153.
Request
Used to hold data that must be available for the duration of one HTTP request. The Request scope is available to
all pages, including custom tags and nested custom tags, that are processed in response to the request.
This scope is useful for nested (child/parent) tags. This scope can often be used in place of the Application scope,
to avoid the need for locking variables. Several chapters discuss using the Request scope.
Server
Contains variables that are associated with the current ColdFusion server. This scope lets you define variables that
are available to all your ColdFusion pages, across multiple applications. For more information, see
Persistent Data and
Session
Contains variables that are associated with one client and persist only as long as the client maintains a session.
They are stored in the server's memory and can be set to time out after a period of inactivity. For more information,
see
"Using Persistent Data and
This
Exists only in ColdFusion components or
ColdFusion Struct. Exists for the duration of the component instance or containing object. Data in the This scope
is accessible from outside the component or container by using the instance or object name as a prefix.
ThisTag
Used only in custom tag pages. The ThisTag scope is active for the current invocation of the tag. If a custom tag
contains a nested tag, any ThisTag scope values you set before calling the nested tag are preserved when the
nested tag returns to the calling tag.
The ThisTag scope includes three built-in variables that identify the tag's execution mode, contain the tag's
generated contents, and indicate whether the tag has an end tag.
A nested custom tag can use the
information, see
Thread
Variables that are created and changed inside a ColdFusion thread, but can be read by all code on the page that
creates the thread. Each thread has a Thread scope that is a subscope of a cfthread scope. For more information,
see
"Using ColdFusion
Service" on page 606.
form
tag, you must use
method="post"
Data" on page 703.
Locking" on page 301.
Locking" on page 301.
cfassociate
"Accessing tag instance
Threads" on page 328.
Last updated 1/20/2012
"Using Persistent Data and
.) For more information, see
"Writing and Calling User-Defined
cffunction
tags that are part of a containing object such as a
tag to return values to the calling tag's ThisTag scope. For more
data" on page 216.
Locking" on
"Introduction to Retrieving and
Functions" on
"Using
57

Advertisement

Table of Contents
loading

This manual is also suitable for:

Coldfusion 9

Table of Contents