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: MOD Implementation
 Active Users Lite - not acurate count
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

wolfman
Starting Member

44 Posts

Posted - 16 January 2004 :  08:39:01  Show Profile  Send wolfman an ICQ Message
Hi,

Installed Active Users Lite MOD yesterday and the numbers apear to be wrong. The active users is my bigest suspect. It indicates 2128 as my active users. As much as I'd LIKE to have my forum be that popular, I DON'T THINK SO :-). Also the numbers dont seem to be resetting... I did see another post in here on this subject and they asked for the code in the global, but the reply never came back. So here is the code in my global. Thanks Much!


Sub Application_OnStart
Application("ActiveUsers") = 0
Application("HighestToDate") = 0
Application("VisitorsToday") = 0
Application("TodaysDate") = Date
End Sub

Sub Session_OnStart
Session.Timeout = 20 '## minutes
Session("Start") = Now
Application.Lock
Application("ActiveUsers") = Application("ActiveUsers") + 1
if Application("ActiveUsers") > Application("HighestToDate") then
Application("HighestToDate") = Application("HighestToDate") + 1
end if
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
</SCRIPT>

dayve
Forum Moderator

USA
5820 Posts

Posted - 16 January 2004 :  09:58:34  Show Profile  Visit dayve's Homepage
your global.asa appears to be fine and I have also witnessed this anomoly. restarting the server will clear it out. I think this may have something to do with IIS improperly set up on a shared server.

Go to Top of Page

wolfman
Starting Member

44 Posts

Posted - 16 January 2004 :  10:06:51  Show Profile  Send wolfman an ICQ Message
bummer... getting my host to restart the server is almost impossible. Any other ideas?

thanks for your input.

Larry
Go to Top of Page

NiteOwl
Junior Member

Canada
403 Posts

Posted - 26 January 2004 :  05:22:03  Show Profile  Visit NiteOwl's Homepage
If you re-upload your global.asa file it should re-set the counter. If it does . . .

You may be forced to upload the global.asa to your forum every day at midnight, it sounds bad but you can do it quite easily in an automated mode with a good scripting FTP program like bulletproof.

NiteOwl

-=NiteOwl=-
Go to Top of Page

HuwR
Forum Admin

United Kingdom
20584 Posts

Posted - 26 January 2004 :  06:20:54  Show Profile  Visit HuwR's Homepage
when of your biggest problems with inacuracy is going to be this
Session.Timeout = 20 '## minutes

having such a large timeout will grossly over exagerate the number of 'live' users, since most people only hang around for a few minutes, but your count includes them for 20 minutes.

The global asa method is also extremely vunerable to spiders which can generate several thousand users in a matter of seconds.
Go to Top of Page

NiteOwl
Junior Member

Canada
403 Posts

Posted - 27 January 2004 :  00:13:10  Show Profile  Visit NiteOwl's Homepage
I personally have had some pretty awesome success with this simple program, the only trick was I use the automatic ftp upload to re-set the global settings, it proved to give me a flawless re-set at midnight, especially since my server is 3 hours away. I have found that over the 3 months I have been running this that my counts are pretty accurate, tho you are correct on the 20 minute default timeout.

NiteOwl

-=NiteOwl=-
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.35 seconds. Powered By: Snitz Forums 2000 Version 3.4.07