| Contents > CFML Reference > Reserved Words and Variables > Scope-specific built-in variables > Application and session variables |
|
|
|
|
||
To enable application and session variables, use the cfapplication tag. Reference them as follows:
Application.myvariableSession.myvariable
To ensure that modifications to shared data occur in the intended sequence, use the cflock tag. For more information, see cflock.
The predefined application and session variables are as follows:
Application.ApplicationName Session.CFID Session.CFToken Session.URLToken
A ColdFusion custom tag returns the following variables:
ThisTag.ExecutionModeThisTag.HasEndTagThisTag.GeneratedContentThisTag.AssocAttribs[index]
A custom tag can set a Caller variable to provide information to the caller. The Caller variable is set as follows:
<cfset Caller.variable_name = "value">
The calling page can access the variable with the cfoutput tag, as follows:
<cfoutput>#Caller.variable_name#</cfoutput>
|
|
||
| Contents > CFML Reference > Reserved Words and Variables > Scope-specific built-in variables > Application and session variables |
|
|
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.
RSS feed | Send me an e-mail when comments are added to this page | Comment Report
Current page: http://livedocs.adobe.com/coldfusion/6.1/htmldocs/expres10.htm
Comments
KiraganJeff said on Sep 27, 2004 at 8:30 AM :