| there is a file called the "global.asa". The Global.asa file is event driven. It can contain four event procedures: Application_OnStart, Application_OnEnd, Session_OnStart, and Session_OnEnd.
These event procedure stubs can contain script you want to be executed when the application starts or ends, or when the session starts or ends.
Now, to get a user count the code below goes in your "global.asa" file which needs to go in the root of your web site. You web site must be properly set up as an application in IIS for this file to fire and do it's thing. |