Forum Moderators: open
Thanks!
Mac
<added>
Ok, got my host to do that, and the asa has fired. One question, if I have a response.write within a session_onstart, wouldn't that carry all the way through the site?
</added>
if I have a response.write within a session_onstart...
No. The global.asa is NOT an include file. The *_OnStart functions it contains are called by IIS at specific times and always PRIOR to executing the .asp page that fires them.
So Session_OnStart executes the first time the visitor hits a page within your application. I don't recall if it is on the first ASP page they hit or on the first ASP page they hit that utilizes the Session object. Either way, IIS executes the function and then processes that page. Any pages they hit after that do not cause that function to be executed.
Similarily, the Session_OnEnd function is called AFTER the Session object is destroyed because session timed out or was explicitely abandoned using Session.Abandon.