I have a requirement in my app where i want to call Logout() function only when browser tab / browser close button is clicked.
Not when page navigation, page refresh.
I have used onbefeunload and onunload. but it is not working properly.
Thanks in Advance,