title: Detect JSF session timeout/refresh/back/forward and return to login screen
body: <p>I have a JSF 1.2 application that has a session going on and whenever the session timeouts or the user presses the browse back or refresh page, the session gets messed up and things start to behave unexpectedly.</p>
  
  <p>I would like to simply bring the user back to a predefined login screen whenever that happens.
  Authentication is handled inside the JSF application.</p>
  
  <p>Thanks in Advance!</p>