Reputation: 175
Our ASP Classic application assigns a Session("User_ID") for every user that logs in.
I have played around with Session.Contents, but that just returns the sessions associated with my login.
Is there any way to see all of the application's active Session("User_ID") values?
In other words, if the application has assigned Session("User_ID") = "15", Session("User_ID") = "27", Session("User_ID") = "149" and Session("User_ID") = "234", I would like to loop through some collection and get "15, 27, 149, 234".
Is this possible?
Upvotes: 0
Views: 516
Reputation: 11527
Usually what you do is to update a database table which has that userID and update a lastActivity datetime column. Simplest would be to have every page call a common include that updates this. Another option is if you have a timer that logs them out automatically is to update a flag to say they aren't logged in anymore.
Upvotes: 1