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 ...

Get The ASP.NET 2.0 Anthology 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.