Welcome Guest, Not a member yet? Register   Sign In
Ion Auth - Lightweight Auth System based on Redux Auth 2

[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?


Messages In This Thread
Ion Auth - Lightweight Auth System based on Redux Auth 2 - by El Forum - 09-26-2012, 08:00 AM



Theme © iAndrew 2016 - Forum software by © MyBB