Author |
Topic |
|
wolfman
Starting Member
44 Posts |
Posted - 16 January 2004 : 08:39:01
|
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
|
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. |
|
|
|
wolfman
Starting Member
44 Posts |
Posted - 16 January 2004 : 10:06:51
|
bummer... getting my host to restart the server is almost impossible. Any other ideas?
thanks for your input.
Larry |
|
|
NiteOwl
Junior Member
Canada
403 Posts |
Posted - 26 January 2004 : 05:22:03
|
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=-
|
|
|
HuwR
Forum Admin
United Kingdom
20584 Posts |
Posted - 26 January 2004 : 06:20:54
|
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.
|
|
|
NiteOwl
Junior Member
Canada
403 Posts |
Posted - 27 January 2004 : 00:13:10
|
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=-
|
|
|
|
Topic |
|