Here is what I put in the global.asa Sub Application_OnStart Application("ActiveUsers") = 0 Application("TodaysDate") = Date Application("VisitorsToday") = 0 End Sub Sub Session_OnStart Session.Timeout = 1 ' minutes Session("Start") = Now Application.Lock Application("ActiveUsers") = Application("ActiveUsers") + 1 if Application("TodaysDate") = Date then Application("VisitorsToday") = Application("VisitorsToday") + 1 else Application("TodaysDate") = Date Application("VisitorsToday") = 1 end if Application.UnLock End Sub Sub Session_OnEnd ' Decrease the active visitors count when the session ends. Application.Lock Application("ActiveUsers") = Application("ActiveUsers") - 1 Application.UnLock End Sub
Here is what I put on the page: <%=Application("ActiveUsers")%> Active Users <%=Application("VisitorsToday")%> Visitors for <%=Application("TodaysDate")%>
I helped someone out with this same problem this morning and when they used FP it added about an extra 100 lines of code
the same thing could be happening to yours. maybe you can just try ftp'ing it into your directory. also some host do not allow you to use global.asa files. it all depends on how they are setup
Alright thanks Brad....its on my own server and the global.asa usually works. I also tried to add manually and the same problem still occurs. I am not getting any errors. Its just that the active number of people and visitors today do not seem to appear.