CHAPTER 18

image

Managing State Data

In previous chapters, we have shown you the way that ASP.NET handles requests. The topic of this chapter is state data, which allows a framework like ASP.NET to create an application out of a series of stateless HTTP requests, giving us the ability to associate related requests together and store and retrieve the data we need to create continuity for the user. In this chapter, we show you the problem that stateless HTTP requests present and the different features that ASP.NET provides to address that problem.

Creating the Example Application

For this chapter, we created a new Visual Studio project called State

Get Pro ASP.NET 4.5 in C#, Fifth Edition 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.