In my application I want user to take an single signin. when he is leaving the application. As name explains, It should happen only when user closes current browser tab or browser window or browser referesh button. Its possible using JavaScript OnUnload event. But the problem is that this event occurs on
- close of browser tab
- close of browser window
- click of any internal page link(i.e anchors, form buttons and buttons events)
- click of browser's Refresh button
- click of browser's Back/Forward button
I have handled first 3 cases but not able to detect browser Refresh and Back/Forward button click. Has anybody of you implemented such functionality, Please help me??
Thanks in advance!!!