
214
Chapter 12 Using the Application Framework
Understanding the Web Application Framework
A ColdFusion application is a collection of application pages that work together.
Applications can be as simple as a guest book or as sophisticated as a full Internet
commerce system with catalog pages, shopping carts, and reporting. You can
combine individual applications to create advanced Web systems.
The ColdFusion Web Application Framework is based on four basic components:
•
Application-level settings and functions
•
Client, Session, Application, and Server scope variables
•
Custom error handling
•
Web server security integration
With these components, you can easily combine your ColdFusion application pages
to create sophisticated Web applications.
Application-level settings and functions
ColdFusion provides application-level facilities that help you control settings,
variables, and features available across the entire application. After you define an
application, you can use the application-level features in addition to all of the other
features in ColdFusion.
You specify application-level settings in the Application.cfm and OnRequestEnd.cfm
files. Application.cfm is executed when ColdFusion starts processing each page in
your application, and OnRequestEnd.cfm is processed after all other processing is
completed for the page.
Client, Session, Application, and Server scope variables
ColdFusion provides four variable scopes that let you to maintain data that must last
beyond the scope of the current page.
Variable Scope Description
Client
Contains variables that are available for a single client browser
over multiple browser sessions in an application. Client variables
are stored as cookies, database entries, or Registry values. Client
variables can time out after an extended period.
You cannot access the Client scope as a data structure. You
should use the Client scope prefix in the variable name, but it is not
required.
Session
Contains variables that are available for a single client browser for
a single browser session in an application. Session variables are
stored in memory and time out after a period of inactivity or when
the server shuts down.
You can access the Session scope as a data structure. You must
use the Session scope prefix in the variable name.
Содержание COLDFUSION 5-DEVELOPING
Страница 1: ...Macromedia Incorporated Developing ColdFusion Applications MacroMedia ColdFusion 5 ...
Страница 58: ...38 Chapter 3 Querying a Database ...
Страница 134: ...114 Chapter 7 Updating Your Database ...
Страница 210: ...190 Chapter 10 Reusing Code ...
Страница 232: ...212 Chapter 11 Preventing and Handling Errors ...
Страница 238: ...218 Chapter 12 Using the Application Framework ...
Страница 262: ...242 Chapter 12 Using the Application Framework ...
Страница 278: ...258 Chapter 13 Extending ColdFusion Pages with CFML Scripting ...
Страница 320: ...300 Chapter 15 Indexing and Searching Data ...
Страница 336: ...316 Chapter 16 Sending and Receiving E mail ...
Страница 374: ...354 Chapter 18 Interacting with Remote Servers ...