I have a silverlight application in which I need to fire signout event if user navigates away. I have tried a sample function as
window.onunload = function test() { alert("test"); }
The problem is when I navigate away from the webpage the event fires, but I need this event to fire when user closed browser or tab.