Alexander Ganz: User Online Script in Global.asa

Beitrag lesen

Hallo!

Ich habe ein Script geschrieben, welches mir sagen soll, wieviele User gerade online sind.
In der Global.asa sieht das so aus:

SUB Application_OnStart
Application("Count") = 0
END Sub

SUB Session_OnStart
Application.Lock
Application("Count") = Application("Count")+1
Application.UnLock
END SUB

SUB Session_OnEnd
Application.Lock
Application("Count") = Application("Count")-1
Application.UnLock
END SUB

Allerdings wird die Session_onEnd nicht ausgeführt. Es wird also nur hoch gezählt, aber nicht runter.
Weiss jemand woran das liegen könnte??
Wäre klasse!

Also bis dann,
Alex