Is it possible to list all the users who are currently logged in?
Thanks.
Don't think so - there doesn't even seem to be anything to distinguish between logged in and non-logged in users which is accessible through asset listings or similar.
Is it possible to list all the users who are currently logged in?
If you want to be tricky, you could setup a trigger that has the event of User Login. Then, link that user to a "Logged In Users" folder. Then create another trigger to unlink them on User Logout. Then use an asset listing to list these users.
It should work, but you will have to do some testing to see what happens if a user just closes their browser rather than clicking the logout button.
It should work, but you will have to do some testing to see what happens if a user just closes their browser rather than clicking the logout button.
Pretty sure there isn't a logout event fired off in this case.
Also depending on your session settings users could still be 'logged in' even if they aren't currently active on the site.
Using an analytics package might be a better idea if you want to get an idea who's currently logged in and active. I'm fairly certain you could rig something up in google analytics or piwik.
Also depending on your session settings users could still be 'logged in' even if they aren't currently active on the site.
Yeah, I agree. Matrix can be configured to leave a user logged in for 30 days, so this would be an issue...