Hello people.
I want to prevent multiple log in in php application.
Firstly, I create login status(active, Inactive) in access_log table
When user A login the user status will be set to 'active', and if the user logout the status will be set to 'Inactive'. when another client tries to login using the same user account which is still active, I check the access_log table. if the user still active the error login will be sent to the user.
But the problem occurred is, if the user closes the browser. the status in access_log table cannot be updated because the user didnt click logout.
Can someone suggest me something.