Previous PageNext Page

5.2.2 Global.asa File

Global.asa is an optional file that stores script procedures and objects used globally by an application. Script procedures declared in Global.asa can only be for Application_OnStart Event, Application_OnEnd Event, Session_OnStart Event, and Session_OnEnd Event events. Scripts that do not have session or application scope cause the server to return an error. Global.asa files that do not use Application Events or Session Events are ignored. Script procedures declared in Global.asa cannot be called from ASP pages in an application.
 
The file must be called Global.asa and stored in the root directory of the application. There can only be one Global.asa file per application.
 

Note:

The server will reload and compile the Global.asa file if you make changes to the file and save them. Saving changes to a file included by the Global.asa file does not force a reload, so if you change an "included" file you must force a reload by re-saving Global.asa itself. The server will processes all current application requests before it recompiles. During that time, the server refuses additional requests returning the message, "The request cannot be processed while the application is being restarted."


Copyright © 2000 Chili!Soft

Previous PageTop Of PageNext Page