Application Object

The Application Object |
The Application object is created when the ASP DLL is loaded in response to the first request for an ASP page. It provides a repository for storing variables and object references that are available to all the pages that all visitors open.

Contents |
| Collection
A collection of all of the variables and their values that are stored in the Application object, and are not defined using an <OBJECT> element. This includes Variant arrays and Variant-type object instance references.

StaticObjects |
| Collection
A collection of all of the variables that are stored in the Application object by using an <OBJECT> element.

Contents.Remove("variable_name") |
| Method
Removes a named variable from the Application.Contents collection. You cannot remove variables from the Application.StaticObjects collection at run-time.

Contents.RemoveAll() |
Removes all variables from the Application.Contents collection. You cannot remove variables from the Application.StaticObjects collection at run-time.

Lock() |
| Method
Locks the Application object so that only the current ASP page has access to the contents. Used to ensure that concurrency issues do not corrupt the contents by allowing two users to simultaneously read and update the values.

Unlock() |
| Method
Releases this ASP page's lock on the Application object.

onStart |
| Event
Occurs with the first instance of a user requesting one of the Web pages in the application, before the page that the user requests is executed. Used to initialize variables, create objects, or run other code.

onEnd |
| Event
Occurs when the ASP application ends. That is, when the web server shuts down. This is after the last user session has ended, and after any code in the onEnd event for that session has executed. All variables existing in the application are destroyed when it ends.