User Guide

Table Of Contents
284 Chapter 13: Designing and Optimizing a ColdFusion Application
The following example code from the top of an Application.cfc sets the application name and
properties:
<cfcomponent>
<cfset This.name = "TestApplication">
<cfset This.clientmanagement="True">
<cfset This.loginstorage="Session">
<cfset This.sessionmanagement="True">
<cfset This.sessiontimeout="#createtimespan(0,0,10,0)#">
<cfset This.applicationtimeout="#createtimespan(5,0,0,0)#">
For more information on these settings, see cfapplication in CFML Reference.
Setting page processing options
The
cfsetting tag lets you specify the following page processing attributes that you might want
to apply to all pages in your application:
Often, you use the
cfsetting tag on individual pages, but you can also use it in your
Application.cfc file. For example, you might use it in multi-application environment to override
the ColdFusion MX Administrator settings in one application.
setClientCookies True Whether to send CFID and CFTOKEN cookies to the client
browser.
setDomainCookies False Whether to use domain cookies for the CFID and CFTOKEN
values used for client identification, and for Client scope
variables stored using cookies. If False, ColdFusion MX uses
host-specific cookies. Set to True for applications running on
clusters.
Attribute Use
showDebugOutput Specifies whether to show debugging output. This setting cannot enable
debugging if it is disabled in the ColdFusion MX Administrator. However,
this option can ensure that debugging output is not displayed, even if the
Administrator enables it.
requestTimeout Specifies the page request time-out. If ColdFusion cannot complete
processing a page within the time-out period, it generates an error. This
setting overrides the setting in the ColdFusion MX Administrator. You can
use this setting to increase the page time-out if your application or page
frequently accesses external resources that might be particularly slow,
such as external LDAP servers or web services providers.
enableCFOutputOnly Disables output of text that is not included inside
cfoutput tags. This
setting can help ensure that extraneous text that might be in your
ColdFusion pages does not get displayed.
Variable Default Description