User Guide
Understanding the Web Application Framework 215
ColdFusion does not attempt to automatically evaluate Application, Session, or
Server variables. You must use variable prefixes with these variables, as in
Session.variablename or Application.variablename. As a general rule you should
prefix all these variables with their scope identifier.
ColdFusion provides locking functions to manage access to Session, Application,
and Server variables. Because these variables are kept in your server’s memory, you
must lock them when you use them to prevent errors that arise from simultaneous
access.
Caution
Understanding lock management and using locks effectively is vital to correctly
using Session, Application, and Server scope variables. For more information on
locking, see “Locking Code with cflock” on page 233.
Custom error handling
You can use the cferror tag to display customized HTML pages when errors occur in
your application. This allows you to maintain a consistent look and feel within your
application even when errors occur. It also allows you to optionally suppress the
display of error information.
For more information, see “Generating Custom Error Messages with cferror” on page
199.
Web server security integration
You can integrate your applications with the user authentication and security
provided by your Web server. In addition, the ColdFusion Server offers a security
framework that controls access to applications, pages, data sources, and users. You
set the bounds of a security domain using the
cfauthenticate tag.
For more information, see Chapter 19, “Application Security” on page 355.
Application Contains variables that are available to all pages in an application
for all clients. Application variables are stored in memory and time
out after a period of inactivity or when the server shuts down.
You can access the Application scope as a data structure. You
must use the Application scope prefix in the variable name.
Server Contains variables that are available to all applications in a server
and all clients. Server variables are stored in memory. They do not
time out, and are only deleted when the server stops running.
You cannot access the Server scope as a data structure. You must
use the Server scope prefix in the variable name.
Variable Scope Description