I just want to know how to clear session variables on closed tab in ASP.NET.
I have trouble that I cannot kill session and log out when the user close the tab. I use the <body önunload="Clear()"> to check if the use close the website. It work great if I close the entire browser, but seem like it doesn't work well when closing tab. The state of login still effect when I open a new tab again and view it. I already tried in different browsers, but it stills same thing. So does anyone has solution ?