1
I have a system that marks if the person is available or unavailable . There is a button called get out of. If the person clicks on it when it is available, then it automatically changes the status of the database to unavailable. Only that some users of the site are clicking on X, thus the person continues as available only that actually she is no longer logged in to the site. I’ve been researching and some people talked to use the function unload
or onBeforeUnload
because the two have a difference. I would like to know which of these two to use and if by chance someone knows how to make a request $.post() with jQuery when the person clicks on X
The purpose is to chat or see online users?
– Papa Charlie