| Contents > Developing ColdFusion MX Applications > Elements of CFML > Variables > Variable scopes |
|
|
|
|
||
The following table describes ColdFusion variable scopes:
Scope |
Description |
|---|---|
Variables (local) |
The default scope for variables of any type that are created with the |
Form |
The variables passed from a form page to its action page as the result of submitting the form. |
URL |
The parameters passed to the current page in the URL that is used to call it. |
Attributes |
The values passed by a calling page to a custom tag in the custom tag's attributes. Used only in custom tag pages. |
Caller |
A reference, available in a custom tag, to the Variables scope of the page that calls the tag. Used only in custom tag pages. |
ThisTag |
Variables that are specific to a custom tag, including built-in variables that provide information about the tag. Used only in custom tag pages. A nested custom tag can use the |
Request |
Variables that are available to all pages, including custom tags and nested custom tags, that are processed in response to an HTTP request. Used to hold data that must be available for the duration of one HTTP request. |
CGI |
Environment variables identifying the context in which a page was requested. The variables available depend on the browser and server software. |
Cookie |
Variables maintained in a user's browser as cookies. |
Client |
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. |
Session |
Variables that are associated with one client and persist only as long as the client maintains a session. |
Application |
Variables that are associated with one, named, application on a server. The |
Server |
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. |
Flash |
Variables sent by a Macromedia Flash movie to ColdFusion and returned by ColdFusion to the movie. |
Arguments |
Variables passed in a call to a user-defined function or ColdFusion component method. |
This |
Variables that are declared inside a ColdFusion component or in a |
function local |
Variables that are declared in a user-defined function and exist only while the function executes. |
|
|
||
| Contents > Developing ColdFusion MX Applications > Elements of CFML > Variables > Variable scopes |
|
|
ColdFusion 9 | ColdFusion 8 | ColdFusion MX 7 | ColdFusion MX 6.1 | ColdFusion MX | Forums | Developer Center | Bug Reporting
Version 6.1
Comments are no longer accepted for ColdFusion MX 6.1. ColdFusion 8 is the current version.
Send me an e-mail when comments are added to this page | Comment Report
Current page: http://livedocs.adobe.com/coldfusion/6.1/htmldocs/elemen14.htm