title: log out from browser if the browser closes in asp .net?
body: <p>my requirement is bit of complicated . 
  an user is accessing the data base using the web browser, while accessing the data base if the user is closed the active page instead of log out the session - that session needs to be log out automatically. 
    can some one guide me how to make this ? 
  i am used jquery - in the master page.</p>
  
  <p>onbeforeunload - i am getting message leave the page or stay with this page.
  even i am getting this messages while login and and view the home page too. </p>