The Problem of Maintaining State

The fact that HTTP and HTML are stateless is no accident. A main reason the Web is so wildly popular is the fact that it is so simple. It probably wouldn’t have gotten so big so fast if a whole infrastructure needed to be in place for logging in and out of each Web server, or if it assumed that you needed to maintain a constant connection to a server to keep your current session open.

The simplicity of the sessionless approach also enables the tremendous scalability that benefits Web applications and the Web as a whole. It’s what makes Web applications so thin and lightweight and what allows Web servers to serve so many people simultaneously. So the Web’s statelessness is by design, and most people should be ...

Get Adobe ColdFusion 8 Web Application Construction Kit, Volume 1: Getting Started 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.