I am using JSF 2.2 and Primefaces 8.0. I build the web app using them, when user login and checked, JSF create session scope for user and when close browser session destroyed. there is a problem with session scope, If I close all tabs that belongs to my web app, without close browser, JSF won't destroy session. How can I destroy session IF user close all tabs that belongs to my web app, in another world, if there is no one tab that opining my application, I want to destroy session bean without need to close browser. How can I do that ?