I am using a standard ASA to track the users of my intranet. It works tracking users logging on but it doesnt seem to track them log off...?
Do I need to set an application timeout or something, i would like this counter to be very accurate.
Example, i go to a page on my intranet and it says there is one user logged on.
If i open three other browsers to the intranet it says there are 4 users after a refresh.
But if i close two browsers (expecting it to say 2 users) it still says 4 users after a refresh?
this is the asa:
<SCRIPT LANGUAGE="VBScript" RUNAT="Server">
Sub Application_OnStart
Application("ActiveUsers"
= 0
End Sub
Sub Session_OnStart
Application.Lock
Application("ActiveUsers"
= Application("ActiveUsers"
+ 1
Application.UnLock
End Sub
Sub Session_OnEnd
Application.Lock
Application("ActiveUsers"
= Application("ActiveUsers"
- 1
Application.UnLock
End Sub
</SCRIPT>
and this is the page:
<%@ Language=VBScript %>
<HTML>
<HEAD>
<TITLE>mypage</TITLE>
</HEAD>
<BODY>
There are currently<FONT COLOR="#CC0000"><%= Application("ActiveUsers"
%></FONT> Active User(s)
</BODY>
</HTML>
Do I need to set an application timeout or something, i would like this counter to be very accurate.
Example, i go to a page on my intranet and it says there is one user logged on.
If i open three other browsers to the intranet it says there are 4 users after a refresh.
But if i close two browsers (expecting it to say 2 users) it still says 4 users after a refresh?
this is the asa:
<SCRIPT LANGUAGE="VBScript" RUNAT="Server">
Sub Application_OnStart
Application("ActiveUsers"
End Sub
Sub Session_OnStart
Application.Lock
Application("ActiveUsers"
Application.UnLock
End Sub
Sub Session_OnEnd
Application.Lock
Application("ActiveUsers"
Application.UnLock
End Sub
</SCRIPT>
and this is the page:
<%@ Language=VBScript %>
<HTML>
<HEAD>
<TITLE>mypage</TITLE>
</HEAD>
<BODY>
There are currently<FONT COLOR="#CC0000"><%= Application("ActiveUsers"
</BODY>
</HTML>