Understanding Application Variables

The practice of using application variables is very similar to the other scopes, but remember that application variables persist throughout your application and retain their values for every user session. They expire only when ColdFusion Server is restarted, or if you have defined a custom timeout value in Application.cfm or ColdFusion Administrator.

Note

Application variables can be enabled and disabled under ColdFusion Administrator's "variables" link. Some Web hosting services might not support application variables—check with your host's administrator to find out.

To illustrate, say that you want to maintain some kind of running count that persists as users visit your site. You've designed a form that ...

Get Sams Teach Yourself ColdFusion® in 21 Days now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.