• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 7. Maintaining State > Using Persistent Variables

7.2. Using Persistent Variables

As I mentioned in the introduction, the Web is a stateless environment. ColdFusion addresses this problem by providing five variable scopes you can use to maintain state within your application: application, client, cookie, session, and server. These are known as persistent variable scopes because the variables you set within them persist from template to template, in spite of the stateless nature of the Web. This allows you to build applications that can share data across multiple templates without having to pass the values via form fields or URL variables.

Here's an overview of the types of persistent variables you can use in your ColdFusion applications:


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint