ASP GLOBAL.ASA Reference (2)

zhaozj2021-02-08  290

Second, Application

ASP-based applications consist of all files in their root directory and their subdirectories. The application starts when the user opened a web page in the application in the application.

Terminate when the server is turned off. There are two events, namely Application_onstart events, and Application_ONEND events.

Users can specify scripts for these events in the global.asa file. When the app starts, the server finds and processes in the global.asa file.

Application_onstart event script. When the application terminates, the server processes the Application_ONEND event script.

1.Application_onstart

The Application_onstart event occurs before the first creation of a new session (ie, the session_onstart event). Only Application and Server Built

Objects are available. Quote the session, request, or response object in the Application_onstart event script will cause an error. grammar