HttpApplicationState Class
Enables sharing of global information across multiple sessions and requests within an ASP.NET application.
Assembly: System.Web (in System.Web.dll)
An ASP.NET application is the sum of all files, pages, handlers, modules, and code within the scope of a virtual directory and its subdirectories on a single Web server.
A single instance of an HttpApplicationState class is created the first time a client requests any URL resource from within a particular ASP.NET application virtual directory. A separate single instance is created for each ASP.NET application on a Web server. A reference to each instance is then exposed via the intrinsic Application object.
Application state is not shared across either a Web farm (in which an application is hosted across multiple servers) or a Web garden (in which an application is hosted across multiple processes on the same computer).
| Topic | Location |
|---|---|
| How to: Save Values in Application State | Building ASP .NET Web Applications |
| How to: Read Values from Application State | Building ASP .NET Web Applications |
| How to: Save Values in Application State | Building ASP .NET Web Applications |
| How to: Read Values from Application State | Building ASP .NET Web Applications |
- AspNetHostingPermission
for operating in a hosted environment. Demand value: LinkDemand; Permission value: Minimal.
System.Collections.Specialized::NameObjectCollectionBase
System.Web::HttpApplicationState
Windows 7, Windows Vista, Windows XP SP2, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP Starter Edition, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003, Windows Server 2000 SP4, Windows Millennium Edition, Windows 98
The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.