title: I want to destroy session like IRCTC or SBI when close the tab of browser
body: <p>I want to destroy session like IRCTC or SBI when close the tab of browser.
  i have also tried ini_set('session.use_cookies',0) but clear session when browser is closed but not when only tab is closed.</p>
  
  <p>i have also tried jquery unload() method and onbeforeunload() but still not working.pls help me.</p>