I need to call a function that logsout users from the system when the browser's window is closing.
I found a function window.onbeforeunload
but this also gets called when you reload the browser and I dont want the user to be logged out when he reloads the browser. I need to do it once the browser window is closed.
Is this even feasible?