Adobe COLDFUSION 9 Manual page 258

Developing applications
Hide thumbs Also See for COLDFUSION 9:
Table of Contents

Advertisement

DEVELOPING COLDFUSION 9 APPLICATIONS
Developing CFML Applications
Naming the application
Use the
tag to specify the application name and define a set of pages as part of the same logical
cfapplication
application. Although you can create an application by placing a
each page, you normally place the tag in the Application.cfm file; for example:
<cfapplication name="SearchApp">
Note: The value that you set for the
Setting the client, application, and session variables options
Use the
tag to specify client state and persistent variable use, as follows:
cfapplication
• To use Client scope variables, specify
• To use Session scope variables, specify
You can also optionally do the following:
• Set application-specific time-outs for Application and Session scope variables. These settings override the default
values set in the ColdFusion Administrator.
• Specify a storage method for Client scope variables. This setting overrides the method set in the ColdFusion
Administrator.
• Specify not to use cookies on the client browser.
For more information on configuring these options, see
CFML Reference.
Defining page processing settings
The
tag lets you specify page processing attributes that you want to apply to all pages in your application.
cfsetting
For more information, see
"Setting page processing
Setting application default variables and constants
Set default variables and application-level constants on the Application.cfm page. For example, specify the following
values:
• A data source
• A domain name
• Style settings, such as fonts or colors
• Other important application-level variables
Often, an Application.cfm page uses one or more
user-defined functions, that are required on many of the application's pages.
Processing logins
When an application requires a user to log in, you typically place the
detailed information on security and creating logins, including an Application.cfm page that manages user logins, see
"Securing
Applications" on page 339
attribute in the
name
cfapplication
clientManagement=True.
sessionManagment=True
"Using Persistent Data and
options" on page 242.
tags to include libraries of commonly used code, such as
cfinclude
Last updated 8/5/2010
tag with the application name on
cfapplication
tag is limited to 64 characters.
.
Locking" on page 301 and the
tag on the Application.cfm page. For
cflogin
253

Advertisement

Table of Contents
loading

Table of Contents