As we've noted, when ASP receives a request from a new user, it
checks the global.asa file, which must be located
in the ASP application's virtual root directory. If the request from the new
user is the first request for the ASP application, theApplication_OnStart event procedure, if it is present, is
executed before theSession_OnStart event. When a user
session ends, usually because the session has timed out, ASP checks
global.asa for aSession_OnEnd event. When the
application's last user session ends, ASP also checks whether code for the Applictaion_OnEnd event is present as well.More...