I want need a way to identify the when a user is closing a tab or closing a browser.
The behavior I am expecting for user is to end his session only on browser close and not on tab close.
I have tried following the below stackoverflow trail:-
detect-browser-or-tab-closing--stackoverflow
But all the solution pinning towards restricting browser reload.
Any strategic and technical help would be apreciated.