title: Logoff when closing the browser ot leaving the website
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/1209231/is-there-any-way-to-know-that-user-leaving-a-page-with-asp-net">Is there any way to know that user leaving a page with asp.net?</a>  </p>
  </blockquote>
  
  
  
  <p>How can I perform automatic logout or closing the session when leaving my web application?</p>
  
  <p>(like GMAIL, when you doesn't check "remember me", that logs you off if you close the browser or move to other page).</p>
  
  <p>Thanks, Inbal.</p>