March 16th, 2003, 05:49 PM
My asp application allows a number of users to log into it. Each user has a different type of access level (General User, Manager or Administrator). I want the administrator to be able to see how many other users are logged into the application at a particular time. How can I do this?????
Would the use of an application object work for this???
March 17th, 2003, 01:55 AM
As long as you have sessions enabled, it is quite easy.
In your global.asa file:
you can then get the value of the people connected by reading the Application("Count") variable. This of course assumes that to access any part of your site you have to log in.
Application("Count") = 0
Application("Count") = Application("Count") + 1
Application("Count") = Applcation("Count") - 1