Sun
ONE Active Server Pages Product Home Page Developer Site Version
 

ContentsPreviousNextIndex



Specifying Application Events


An ASP application starts the first time the Web server receives a request for one of the ASP pages contained in the application directory. The application ends when the Web server is shut down (on Windows), or when the ASP Server is shut down (on UNIX and Linux). You can create global data for an application using the built-in ASP Application object. You can assign variables and object instances to application variables so that they are available to all pages of an application.

When an application starts, the Application_OnStart event occurs. The Application_OnEnd event occurs when the application shuts down. When the application starts or stops, the server looks in the global.asa file to find the event scripts.

In this section:

ASP Application_OnStart Event

ASP Application_OnEnd Event



ContentsPreviousNextIndex