title: web.xml configuration to redirect to login page after session timeout in jsf
body: <p>Is there any configuration in web.xml which redirects the application to login page after sesion expired in <strong>JSF</strong>.I google it but didn't find any good and simple answer.<br/>
  I found this but it didn't work.</p>
  
  <pre><code> &lt;error-page&gt;
      &lt;exception-type&gt;javax.faces.application.ViewExpiredException&lt;/exception-type&gt;
      &lt;location&gt;/faces/index.xhtml&lt;/location&gt;
  &lt;/error-page&gt;
  </code></pre>
  
  <p>If there is no configuration for this then how can i do this in JSF?<br/>Thanks</p>