I am working on ASP.NET C# web application. I want to capture the time when the user leaves or closes the tab/browser window. I want to save this time to the database.
I tried using JS onbeforeunload event but it didn't work in chrome and firefox.
Please help.
Thank you.