Forum Moderators: open

Message Too Old, No Replies

global.asa won't execute

global.asa won't execute

         

haef23

10:45 pm on Aug 12, 2003 (gmt 0)

10+ Year Member



I have IIS 6 on Windows Server 2003. For some reason my global.asa file only executes when the entry page is a .ASP file. When my any of my .HTML files are accessed over the internet, the global.asa does nothing. I thought it was supposed to run on all new sessions. Does anyone have any suggestions.

thanks
Jeff

garann

11:40 pm on Aug 12, 2003 (gmt 0)

10+ Year Member



Hi Jeff,

According to this article from InformIT [informit.com]:

Static pages on a site do not use sessions because they are not part of your application...

Thus, your global.asa only gets called once the user hits an ASP page. If it's possible to make your HTML files ASP files in name, and with a simple page declaration at the top, that should solve your worries.

..And welcome to Webmaster World [webmasterworld.com]! Hope that helps.

haef23

1:59 pm on Aug 13, 2003 (gmt 0)

10+ Year Member



Thanks so much for answering my question. What exactly did you mean by a simple declaration at the top of my .ASP page?

thanks again.

Jeff

garann

6:04 pm on Aug 13, 2003 (gmt 0)

10+ Year Member



Hi Jeff,

I stickied you with this, as well, but I meant:

<%@ Page Language="vb" %>