nehepp.. ingen som har nån aninga altså.. damn... stort problem då altså
Jag har en counter + en aktiv counter som visa hur många som e inne på sidan jusst nu. Den aktiva counter visas inte... det gör det på min PWS men inte på min webserver. Antagligen nåtmed rättigheter men jag fattar inte vad.
active_users.asp
<%@ Language=VBScript %>
<html>
<body>
"What is?" har <b><%=Application("Active")%></b>st besökare för tillfället,
</body>
</html>
global.asa
<script language=vbscript runat=server>
Sub Application_OnStart
Application("Active") = 0
End Sub
Sub Application_OnEnd
'nothing needed here for this app
End Sub
Sub Session_OnStart
Application.Lock
'add 1 to active user count when new visitor arrives
Application("Active") = Application("Active") + 1
Application.Unlock
End Sub
Sub Session_OnEnd
Application.Lock
'subtract 1 from active user count when visitor leaves
Application("Active") = Application("Active") - 1
Application.Unlock
End Sub
</script>
Sedan där countern ska visas:
<!--#include file="Counter/active_users.asp"-->

