title: how to show popup when session is timeout and the user is inactive in jsf?
body: <p>I want  the application show a popup to inform inactive user when he back to use the application that the session is timeout and to click on ok to redirect him to login again.</p>
  
  <p>the first problem i cant detect that the session is timeout .</p>
  
  <p>the second problem evenif i detect that the session is timeout how can i show the popup ?</p>
  
  <p>i tryed o detect the session timeout with a listener but didnt work</p>
  
  <pre><code>   &lt;f:event listener="#{logincontroller.checksessiontimeout}" type="preValidate"/&gt;
  </code></pre>
  
  <p>i am using primefaces and glassfish.</p>