Chapter 4: Optimizing Application and Session State Management


Highlights

ASP.NET state management is the ability of a Web application to persist information, both at the application and session levels. There are two main types of state in a Web application:

  • Application state: This is information that applies to all clients of the Web application. This information is shared by, and managed for, multiple clients .

  • Session state: This is information that applies to a specific client session. You manage this information for individual clients.

Application and session state management are important for personalizing Web applications and for persisting information that is widely used across a Web application. ASP.NET expands the range of options available for managing application and session state. In particular, it overcomes previous limitations of classic ASP for managing state across Web farms.

You continue to manage application state using the Application object (technically, the HttpApplicationState class). In addition, ASP.NET provides the Cache class, which offers more granular control over managing application data.

Session state management has been greatly expanded compared to classic ASP; you are no longer confined to just using in-process Session objects. In classic ASP, developers liked Session objects for their ease of use but disliked them for negatively impacting application scalability and performance. ASP.NET faces similar challenges; however, the actual performance implications may surprise you. As we discuss in this chapter, Session objects are not necessarily performance killers. On the contrary, when used correctly, they can greatly improve the performance of your application and minimally impact scalability. Most books simply make a cursory reference to the "performance impact" of using Session objects. We, on the other hand, take the discussion a step further by running performance tests for each session mode and examining the numbers .




Performance Tuning and Optimizing ASP. NET Applications
Performance Tuning and Optimizing ASP.NET Applications
ISBN: 1590590724
EAN: 2147483647
Year: 2005
Pages: 91

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net