I am creating a chat client that uses a database to check the status of a 0-wait, 1-working, 2-closed session.
I have a close button that will change the status to 2, but I was wondering how to determine if the browser is closed just by pressing x?
The main reason for this is that I do not want the session to appear as working when one of the participants closed his browser.
javascript jquery php window
THEK
source share