So I'm trying to recreate this feature.
var userManager = UserManager.GetManager();
var users = userManager.GetUsers().OrderBy(user => user.UserName).ToList();
var usersLoggedIn = users.Where(user => user.IsLoggedIn).ToList();
But I seem to get almost 38 users. Now, I looked at the database, and did a select by
SELECT * FROM [sf635000_intranet].[dbo].[sf_users]
WHERE is_logged_in = 1 ORDER BY last_login_date DESC
But there I know some users logged out, which would explain why this select statement fails. I could have someone who's listed as the 8th row, but they still show as logged in on the CMS. Isn't there a 'last_logged_out' column I could use?
What would the proper API method be to get 'the currently logged in users'??