## Application Events

An ASP-based application is made up of all the files in its root directory and in any subdirectories. An application starts the first time that a user opens one of the Web pages in the application and ends when the server shuts down. The application has two events, an Application_OnStart event and an Application_OnEnd event.

You can specify script for these events in the Global.asa file. When the application starts, the server looks in the Global.asa file and processes the Application_OnStart event script. When the application ends, the server processes the Application_OnEnd event script.

© 1997-2001 Microsoft Corporation. All rights reserved.