I have a table for tracking the online status of a user by setting the "is_online" field to 1. Now the user logs on to the site and closes his system or shuts it down when he / she is logged in. Here in the database is_login there is a value of 1, which means that it is still using the site.
So I need to do some logic to change this value to "0".
How can I handle this situation using PHP?
source
share