![]() |
"Who's logged in" help - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: "Who's logged in" help (/showthread.php?tid=22910) |
"Who's logged in" help - El Forum - 09-23-2009 [eluser]spmckee[/eluser] Greetings, I have read several threads on the "Who's online" functionality but still can't make sense of them. I do understand the method of finding the latest, active users via the "last activity" column in the DB. What I need big help on is pulling that info out and using AJAX / Javascript for updating the information on the fly. I'm a complete noob with javascript stuff. Are there any simple CI helpers or tutorials that can get me headed inthe right direction? Thanks! SP "Who's logged in" help - El Forum - 09-24-2009 [eluser]InsiteFX[/eluser] Hi, This may help you to under stand it. Code: -- When a user comes to the site they are assigned a guest level of 0, and moved to the guests_online table. If they then login they are removed from the guests_online and moved to the users_online table both with a timestamp. This should not be hard to add to any of the auth systems out there. This is from an old auth system that I have I am convering it over in my spare time to a Role Based Access Conntrol system for CodeIgniter. Enjoy InsiteFX |