[jQuery] On window unload

[jQuery] On window unload


I have a simple php page that when a GET variable of logout is passed,
a session is destroyed. If a user doesn't explicitly logout and just
closes the browser is there any way to destroy the session from the JS
end of things?
I tried firing a $.get() request on window unload but it doesn't
complete because the browser has closed. Does anyone have any
suggestions?