Jump to content

Check if user is online


nadeemshafi9

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.

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.