Track Browser close event using jquery

Track Browser close event using jquery

Hi everybody,

I want to track the browser close event to logout the user if they close the browser. Please help.

Thanks
Madan Kumar