View comments | RSS feed
Contents > CFML Reference > Reserved Words and Variables > Scope-specific built-in variables > Application and session variables PreviousNext

Application and session variables

To enable application and session variables, use the cfapplication tag. Reference them as follows:

Application.myvariable
Session.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

Custom tag variables

A ColdFusion custom tag returns the following variables:

ThisTag.ExecutionMode
ThisTag.HasEndTag
ThisTag.GeneratedContent
ThisTag.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 PreviousNext

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.

Comments


KiraganJeff said on Sep 27, 2004 at 8:30 AM :
Shouldn't the calling page portion of this just be
<cfoutput>#variable_name#</cfoutput>, since the scope would be local in the calling page, and not "caller" as it is in the custom tag?
jrunrandy said on Sep 28, 2004 at 5:05 PM :
Correct. We will fix this in the next rev of the CF docs.
RBKHwaterbury said on Oct 25, 2004 at 1:29 PM :
how do you drop an entire session at once?

 

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