title: Redirect to different page after session expires
body: <p>I have a web application build with these technologies :</p>
  
  <ul>
  <li>Spring MVC</li>
  <li>Web Flow</li>
  <li>Spring Security</li>
  <li>Primefaces</li>
  </ul>
  
  <p>And I need to redirect user to different page after session expires. After some research I found two options. Use JavaScript with timeout function or <code>&lt;meta http-equiv="refresh"&gt;</code> tag.
  But is there some more elegant way to do it ?</p>
  
  <p>I also tried to do it with HttpSessionListener but I didn't know how to redirect client to different site (I am not sure if it is possible).</p>
  
  <p>Or would it be possible to configure Tomcat  or Apache to somehow refresh clients view after some time ?</p>
  
  <p>Thanks in advance.</p>