Showtime99
Programmer
Hello,
I'm trying to use a global.asa file to get the number of current visitors on my site.
I'm using IPower to host my site. I've tried uploading the file to the root folder as well as the folder and nothing seems to work. Here is the code I'm using
<ScriptLanguage = "VBScript" RUNAT="Server">
SubApplication_OnStart
Application("WhosOnLine")=0
End Sub
SubApplication_OnEnd
End Sub
SubSession_OnStart
Application.Lock
Application("WhosOnline") =Application ("WhosOnline") + 1
Application.Unlock
End Sub
Sub Session_OnEnd
Application.Lock
Application("WhosOnline")=Application("WhosOnline") - 1
Application.Unlock
End Sub
</Script>
Thanks to anyone who can help and does, you will get stars
Showtime
I'm trying to use a global.asa file to get the number of current visitors on my site.
I'm using IPower to host my site. I've tried uploading the file to the root folder as well as the folder and nothing seems to work. Here is the code I'm using
<ScriptLanguage = "VBScript" RUNAT="Server">
SubApplication_OnStart
Application("WhosOnLine")=0
End Sub
SubApplication_OnEnd
End Sub
SubSession_OnStart
Application.Lock
Application("WhosOnline") =Application ("WhosOnline") + 1
Application.Unlock
End Sub
Sub Session_OnEnd
Application.Lock
Application("WhosOnline")=Application("WhosOnline") - 1
Application.Unlock
End Sub
</Script>
Thanks to anyone who can help and does, you will get stars
Showtime