title: Browser back and close event using jQuery
body: <p>Trying to invalidate the session once click on the browser back button as well as browser close using jQuery.
  How to capture the browser back button event and browser close event? Is there any advantage with respect to javascript?</p>
  
  <p>Any help appreciated.</p>