Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Help Groups for Snitz Forums 2000 Users
 Help: General / Current Version (Old)
 Code for Active Users and Total Visitors Today
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

greatweb1
Starting Member

13 Posts

Posted - 15 March 2001 :  14:15:20  Show Profile
Hi guys...can I get the codes for the Active Users and Total Visitors today. I tried the global.asa include and it did not seem to work.

redbrad0
Advanced Member

USA
3725 Posts

Posted - 15 March 2001 :  14:20:20  Show Profile  Visit redbrad0's Homepage  Send redbrad0 an AOL message
are you sure that your global.asa is working? are you putting your global.asa file into your server using front page?

Brad
Go to Top of Page

greatweb1
Starting Member

13 Posts

Posted - 15 March 2001 :  14:23:59  Show Profile
Yes, it was created with Frontpage.

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")%>

Go to Top of Page

redbrad0
Advanced Member

USA
3725 Posts

Posted - 15 March 2001 :  14:33:46  Show Profile  Visit redbrad0's Homepage  Send redbrad0 an AOL message
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

Brad
Go to Top of Page

greatweb1
Starting Member

13 Posts

Posted - 15 March 2001 :  14:42:35  Show Profile
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.

Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.32 seconds. Powered By: Snitz Forums 2000 Version 3.4.07