O'Reilly logo

The ASP.NET 2.0 Anthology by Phil Haack, Jon Galloway, Wyatt Barnett, Jeff Atwood, Scott Allen

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 6 Maintaining State

The Web is built upon HTTP—a stateless protocol. But what exactly do the terms “state” and “stateless” mean?

The state of a web application is a sort of snapshot of an application’s configuration values, which change over time. The fact that HTTP is stateless means that it does not have the mechanism for maintaining any kind of history of a user’s interactions with your application. When you make a request for a web page, and the server sends a response back, that connection to the web server is closed. The transaction is over. The very next request of the server could come from anyone, anywhere, and HTTP wouldn’t know the difference between one request and the next. This is the typical way in which requests ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required