title: JSF - Richfaces - How to know if the session is timed out (on client)
body: <p>I am developing application using JSF- richfaces.</p>
  
  <p>The application has standard login page, session management and the session expire time is 15 min.</p>
  
  <p>One of the requirement is, when the session expires and if the user clicks on any of the links, I need to display a popup(instead of going to login page) which will say "Your session expired, please login again".</p>
  
  <p>If it is a single link I can use a4j to check if the session is expired or not.
  But in my case, I need to display the "session out" alert for every link and button.</p>
  
  <p>Any pointers to this will help me to proceed forward.</p>
  
  <p>Thank you in advance.</p>