Skip to Main Content
Programming ColdFusion MX, 2nd Edition
book

Programming ColdFusion MX, 2nd Edition

by Rob Brooks-Bilson
August 2003
Intermediate to advanced content levelIntermediate to advanced
1140 pages
68h 45m
English
O'Reilly Media, Inc.
Content preview from Programming ColdFusion MX, 2nd Edition

Chapter 7. Maintaining State

By design, the Web is a stateless environment. This means that each request from a web browser to a web server is independent of every other request. While this might make for efficient use of bandwidth, it is the bane of web developers, who must be able to keep track of users as they navigate their way through an application. Without the ability to maintain state, applications have no way of knowing what information belongs to which user. To borrow a metaphor, this means that a shopping cart can’t remember what items it contains, let alone which user is pushing the cart!

ColdFusion handles the stateless nature of the Web via a mechanism known as the Web Application Framework. The Web Application Framework enables you to build and manage virtually any type of application, from a simple employee directory to amazingly complex business-to-business systems and everything in between. Specifically, the Web Application Framework was devised as a means for maintaining state, setting application constants, handling errors, and managing security.

In this chapter, we’ll discuss the state maintenance features of the Web Application Framework. Chapter 8 covers the security features, and Chapter 9 explores exception and error handling.

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Programming ColdFusion

Programming ColdFusion

Rob Brooks-Bilson

Publisher Resources

ISBN: 0596003803Supplemental ContentErrata Page