Forum Moderators: phranque
Examply of Application Session state.
In the global.asa file
Sub Session_OnStart
if not(IsNull(Application("SESSIONCOUNT"))) then
Application("SESSIONCOUNT") = Application("SESSIONCOUNT") + 1
else
Application("SESSIONCOUNT") = 1
end if
End Sub
Sub Session_OnEnd
if not(IsNull(Application("SESSIONCOUNT"))) then Application("SESSIONCOUNT") = Application("SESSIONCOUNT") - 1
End Sub
In the ASP page where you want that count displayed
This is one of <%=Cstr(Application("SESSIONCOUNT"))%> concurrent sessions being served by this site.