I've got a javascript class for reporting events (eg. user logged on, user supplied incorrect password, etc..) for a web app, which wraps a Server.CreateObject call, and some initialisation code.
So, in each ASP page that needs to log an event, there is an #include statement at the top of the code. However, I'd really like to be able to log an event in the Session_OnStart, so I'd like to call this class from global.asa. However, the file that's included (ie. the class file) starts and ends with the <% %> tags, which are not valid in the global.asa file.
Is there any way that I can adjust this set up so that one file can be shared by the ASP code AND the global.asa?
Maybe I'm missing something obvious, but I just can't think of a way to make one file "includable" by both.
Thanks in advance for any help that can be offered!
Cheers,
Dan.
So, in each ASP page that needs to log an event, there is an #include statement at the top of the code. However, I'd really like to be able to log an event in the Session_OnStart, so I'd like to call this class from global.asa. However, the file that's included (ie. the class file) starts and ends with the <% %> tags, which are not valid in the global.asa file.
Is there any way that I can adjust this set up so that one file can be shared by the ASP code AND the global.asa?
Maybe I'm missing something obvious, but I just can't think of a way to make one file "includable" by both.
Thanks in advance for any help that can be offered!
Cheers,
Dan.