title: End Session on browser/tab close
body: <p>I have browsed through out the internet. I can't find a proper solution for this. Is there a proper way to kill/end session when browser or tab is closed without logging off?</p>
  
  <p>I have tried all the codes in javascript that I found on internet. None of them work. </p>
  
  <p>All my users use IE only. So the code can work for that alone. Any tech is fine with me ie, javascript, jquery, ajax. Is there any solution for this? I know HTTP is stateless, browser event is client side and all that. But someone should have a working code for this. Please help.</p>