i've used these files before but now i can't get it to work.
i have set the application settings in IIS, placed the ASA file in the same directory as my web site and restarted my machine but i can't access the variables from my file......
now, when i set the application settings in IIS i just left it as "default application".Code:<SCRIPT LANGUAGE="VBScript" RUNAT="Server"> Sub Application_OnStart ' Set our user count to 0 when we start the server Application("ActiveUsers") = 0 End Sub Sub Session_OnStart ' Change Session Timeout to 20 minutes (if you need to)</FONT> Session.Timeout = 20 ' Set a Session Start Time</FONT> ' This is only important to assure we start a session</FONT> Session("Start") = Now ' Increase the active visitors count when we start the session</FONT> Application.Lock Application("ActiveUsers") = Application("ActiveUsers") + 1 Application.UnLock End Sub Sub Session_OnEnd ' Decrease the active visitors count when the session ends.</FONT> Application.Lock Application("ActiveUsers") = Application("ActiveUsers") - 1 Application.UnLock End Sub </SCRIPT>
do i need to change it to anything else?
i only have one application running on this machine right now so i thought Default would be fine.
Thanks!




Reply With Quote