Sun Chili!Soft ASP Sun Chili!Soft
ASP Sun Microsystems

 

Using the global.asa File

Global.asa is an optional file that stores script procedures and objects used globally by an application. There can only be one global.asa file per ASP application. The file must be named global.asa and must be stored in the root directory of the application. The root directory of an application is the top-level directory containing all of the application files and sub-directories.

The only script procedures you can declare in a global.asa are the following:

·   Application_OnStart event, as described in "Specifying Application Events" in this chapter.

·   Application_OnEnd event, as described in "Specifying Application Events" in this chapter.

·   Session_OnStart event, as described in "Managing User Sessions" in this chapter.

·   Session_OnEnd event, as described in "Managing User Sessions" in this chapter.

Notes

Scripts that do not have session or application scope cause the server to return an error. Global.asa files that do not specify Application and Session events are ignored.

Script procedures declared in the global.asa file cannot be called from ASP pages in an application.

See also:

Saving Changes to the global.asa File in this chapter.

Copyright 2002 Sun Microsystems, Inc. All rights reserved. Legal Notice.