trg86 Posted January 22, 2013 Share Posted January 22, 2013 Hi there guys. I yet again have something I am wanting to do with my project, but I have never really practiced or used before. What would be the easiest way for me to display a list of the currently logged in users (by their username) logged into my system? I can post snippets of my code if you are needing to see something specific. I know doing something like this will involve the users session. Thanks in advance! Quote Link to comment Share on other sites More sharing options...
Jessica Posted January 22, 2013 Share Posted January 22, 2013 You store the current time in their row every time they load a page. When you pull the list of online users, you generally chose a time such as 5 minutes. If their last page view was less than 5 minutes, they're "online". That's the best you can do. Quote Link to comment Share on other sites More sharing options...
trg86 Posted January 22, 2013 Author Share Posted January 22, 2013 Thanks for your reply Jessica. By any chance, would you be able to give me code examples? I am not really sure how to go about doing it, thanks! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.