title: destroy session on window close?
body: <p>I have a created a login system in php with logout functions etc. But I need the session to be destroyed on window close. This needs to be "instant" or as fast as possible to change the users status to offline. I dont really want to set a time on the session as this is annoying for the user having to login all the time.</p>
  
  <p>Any suggestions welcomed, thanks. =)</p>