How do I retrieve list of Active users (with account ids) in IIS 6.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Providing that you mean active VISITORS on your site rather than active USERS, and the fact that I see that you’re using asp.net… you could try the code below.
GLOBAL.ASAX
and then to retrieve that in your page, you would use something like
Now if you are trying to get the number of registerd users, you could try something like this.
And if you need the total number of users on your site, you can use
As for the “With Account ID’s” part… mmmm, not sure… prolly have to loop through each active account and pull it’s ID.