I have a situation where, a user is connected to openfire from a web site. I want to know whenever the user logs off from the website. I’m unable to set the logout status when the page is unloading because unloading event occurs in 3 different cases
When page is refreshed,
When he moves to some other page on the same website,
When the browser is closed.
Can i set a timer and know the logout status of a user or is there any other better way of doing this using open fire?