The HttpApplicationState class enables developers to share state across multiple requests/sessions/pipelines within an ASP+ application.
Object
NameObjectCollectionBase
HttpApplicationState
[Visual Basic] Public Class HttpApplicationState Inherits NameObjectCollectionBase [C#] public class HttpApplicationState : NameObjectCollectionBase [C++] public __gc class HttpApplicationState : public NameObjectCollectionBase [JScript] public class HttpApplicationState extends NameObjectCollectionBase
A single instance of an HttpApplicationState class is created the first time a client requests any URL resource from within a particular ASP+ application virtual directory namespace. A separate, single, instance is created for each ASP+ application on the machine. A reference to this instance is then exposed via the "Application" property on the HttpContext object provided to all IHttpModules and IHttpHandlers during a given web request.
Application state is not shared across either a web-farm (when an application is hosted across multiple machines) or a web-garden (when an application is hosted across multiple processes on the same machine).
Namespace: System.Web
Assembly: System.Web.dll