Jump to content

how to detect user online/offline?


zgkhoo

Recommended Posts

you could create a $_SESSION variable with the username, or ID whatever. and have that inserted into your MySQL database, and if it isn't set on whatever page they go to, you remove it from the database and log them out, but their is always the other small problems that come to mind.

 

what if they close the browser?

 

what if they don't log out?

 

what if they don't login and hack the URL?

 

Your best bet is probably to Try google and try and find a OOP script that works Sessions with MySQL, their are a few out their. The only really tricky part is setting them up.

 

Regards ACE

  • 3 weeks 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.