ASP+ defines an application as the sum of all files, pages, handlers, modules and code that can be invoked through the scope of a given virtual directory and its subdirectories. For example, a “401k” application might be published via the “/401k” virtual directory on a web server machine.
Just as traditional standalone applications allow developers to share global information throughout an application, so too do ASP+ applications. Developers accomplish this via the HTTPApplicationState class – which exposes a key-value dictionary of objects that developers can use to store both NGWS object instances and scalar values across multiple web requests.
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 (note: a separate, single, instance is created for each ASP+ Application on the computer). 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.
ASP+ provides the following Application State support:
See Also