User Guide
188 Developing Web Applications with ColdFusion
• Default variables
• Custom error pages
• Data sources
• Default style settings
• Exclusive locks
• Other application-level constants
Note Because UNIX is case sensitive, the application framework file must be
spelled with an initial capital,
Application.cfm, for applications that run
on UNIX platforms.
Naming the application
In ColdFusion, you define an application by giving it a name using the
CFAPPLICATION tag. By using the same application name in a CFAPPLICATION tag,
you define a set of pages as being part of the same logical application.
Note The value you set for the NAME attribute in CFAPPLICATION is limited to
64 characters.
To name the application:
1. Open Studio and create a new file.
2. Modify the file so that it appears as follows:
<!--- This example illustrates CFAPPLICATION --->
<!--- Name the application --->
4 <CFAPPLICATION NAME="SearchApp">
3. Save the file as Application.cfm in the root directory of your application
framework.
Setting up client state management options
If you want to enable client state management, you must do so on every page in an
application. Because the Application.cfm file is included in all of the application’s
pages, you enable client management in the CFAPPLICATION tag, at the beginning of
Application.cfm.
To enable client state management:
1. Open the file Application.cfm in Studio and modify it so that it appears as
follows: