quote: hi I do all steps correct but always show active members zero even I or my friend login the code shows us as visitor
If you have read the given thread carefully, you would see a post by Richard Kinser:
quote: Posted - 10 January 2001 : 19:02:05 -------------------------------------------------------------------------------- In the code that you added to inc_top.asp
For this mod to work on v3.1 SR4 makes sure you are using strUniqueID instead of strCookieURL
' ******************************************************' ADD HERE WHAT YOU WANT THE PREFIX OF YOUR COOKIE TO BE' it will either be 'strCookieURL' or 'strUniqueID'strTempCookieType = strUniqueID' ******************************************************
hi e3stone and bozden i get code for vistor today i do all steps i made file and give its name as global.asa
<SCRIPT LANGUAGE="VBScript" RUNAT="Server"> Sub Application_OnStart Application("ActiveUsers") = 0 Application("TodaysDate") = Date End Sub Sub Session_OnStart If Application("VisitorsToday") = "" then Application("VisitorsToday") = 0 end if Session.Timeout = 3 ' 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 </SCRIPT>
this is the code and i add this code for show the Active Users and Visits Today Active Users in file inc_top.asp