Author: cnbruce posted from: 5D Multimedia We already know OnStart, the script OnEnd event of the Application and Session objects must be declared in the Global.asa file. What kind of file is Global.asa? What is the role? What should I use? And listen to me slowly. First, .asa is the file suffix name, which is the first letter of Active Server Application. Global.asa files can manage two very harsh objects in ASP applications: Application, Session. It is actually an optional file that can specify an event script in this file and declare an object with a session and application scope. The content of this file is not used to display the user, but is used to store event information and objects used by the application. This file must be stored in the root directory of the application. Each application can only have a global.asa file. The most common error concept about the global.asa file is that it can be used as a library for the general usage functions and subroutines. Global.asa files can only be used to create references and capture startups for objects, and end the Application object and the session object. Global.asa files are primarily based on session-level events, called in the following three cases: 1, when Application_onstart or Application_OND event is triggered. 2, when the session_onstart or session_onend event is triggered. 3, when references an object (Object) that is instantiated in the global.asa file. The standard file format of Global.asa is as follows: