[eluser]Andy78[/eluser]
I am returning a list of users with the following:
Code:
$users = $this->ion_auth->users(1)->result();
then using a foreach loop in the view to echo out the fields for each user.
But I would like to check if each individual user is currently logged in or not and there does not seem to be a simple built in way of doing this with Ion auth.
I am using database sessions and I know its probably just a matter of querying the ci sessions table but Im not sure. Has anybody done this already? or is there some simple modifications I can make to ion auth that would make this easy?