Jump to content

Recommended Posts

You have to do it with last_time_seen.

 

Basically you cannot really have an up-to-date deal the best way is to have a table with the time the last user is seen, if that time is greater than X minutes they are not longer online. SO you would just check that on page load to see whose time < X minutes if it is they are considered online.

 

Along with that you have to set the last_seen each time the user goes to another page.

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.