Jump to content

How to show 'online users' for a forum... ?


darkywarkey

Recommended Posts

I've seen this many-a-times where you go to a forum and you can see a list of the users currently logged on and browsing the threads. Is there a way you can access all the session variables (logged in users) through a script, so that you can pull all of the currently online users and show them on a page?  ??? ???

Link to comment
https://forums.phpfreaks.com/topic/152036-how-to-show-online-users-for-a-forum/
Share on other sites

 

I'd prefer not using the method of just checking the timelog on a given page, since the system I'm creating is going to be dependent on whether a person is actually online or not. I'm going to be allowing a form of real-time communication to occur, and I dont want someone not showing up on the active users if they have just been idle for 30min. I'm using AJAX to keep the list updated every few seconds, but I'm not sure how to track when a user leaves? I'm not familiar with any sort of function that tracks that?  ::)

  • 1 month later...

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.