What is the best way to detect if a user leaves a web page?
The onUnload javascript method doesn't work every time (the HTTP request takes longer than the time required to terminate the browser).
Creating will probably be blocked by current browsers.
I'm also using Silverlight, so Silverlight solutions are welcome.