i have a script that i made for my site using it.. My question is i want it to add one to application("guests") if they are not logged in and if they are i want it to be add 1 tto APPLICATION("members") but where would the script that ads it go ? I was thikning global.asa but that wouldnt work and dont i need to be in the file for something to get down. I also need it to minus 1 to them when they leave for guests and members
So far my code is....
<script language="vbscript" runat="server">
Sub application_OnStart
Application("totalonline") = 0
Application("Guests") = 0
Application("Members") = 0
end sub
Sub application_onend
end sub
Sub Session_OnStart
application.Lock
application("totalonline") = application("totalonline")+1
APPLICATION.lock
end sub
Sub Session_onend
application.lock
application("totalonline") = Application("totalonline")-1
application.unlock
end sub
</script>
Please help