session failure ....? are you talking about session invalidated or what ... any ways that will be some error code just do this in web.xml
<error-page>
<error-code>404</error-code>
<location>/WEB-INF/pages/errorPage.jsp</location>
</error-page>
<error-page>
<error-code>403</error-code>
<location>/WEB-INF/pages/errorPage.jsp</location>
</error-page> and use this as an intermediate page also you can use the same page again using some different parameters