Sub Application_End(ByVal sender As Object, ByVal e As EventArgs)
Application.Lock()
Application("CurrentUsers") = Application("CurrentUsers") - 1
Application.UnLock()
End Sub我的就可以阿.
Application.Lock()
Application("CurrentUsers") = Application("CurrentUsers") - 1
Application.UnLock()
End Sub我的就可以阿.
function window.onunload()
{
if (event.clientX < 0 && event.clientY < 0)
window.open("logout.aspx","_blank");
}
</script>inside logout.aspx, call
<%Session.Abandon()%>
Note, this does not always work, since the user can go to another site.....
http://www.asp101.com/resources/active_users.aspActive User Count Without Global.asa
http://www.aspfree.com/authors/josh_painter/activeusers.asp