Chapter 17. State Management

In this chapter

Using Application and Session Variables

Hidden Fields

Synchronization

Global.asax

Session Information

Demo Application

HTTP, by definition, is stateless. Browsers connect to Web sites, request pages and other data, and then act on the data that they have received from the server. After this data transfer is done, though, there is no more interaction between the client and the server, including shared data and state variables. This is why we say that HTTP is stateless.

Using cookies is one way to maintain some state. But ASP.NET provides an even better mechanism for maintaining a certain amount of state between a client and server, and it has two distinct categories. Client browsers can prevent cookies ...

Get Special Edition Using® Microsoft® ASP.NET 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.