I have login.xhtml, managePage.xhtml and sessionTimeout.xhtml. I want to redirect the sessionTimeout page when the session is time out. But it redirects to the login page whenever session is time out.
In the web.xml
<session-config>
<session-timeout>1</session-timeout>
</session-config>
<error-page>
<exception-type>javax.faces.application.ViewExpiredException</exception-type>
<location>/sessionTimeout.xhtml</location>
</error-page>
in shiro.ini
[main]
authc.loginUrl = /faces/loginPage.xhtml
authc.successUrl = /faces/registerPage.xhtml
# ------------------------
....
# -----------------------------------------------------------------------------
[urls]
/faces/protected/* = authc
- I want to redirect the sessionTimeout page when session is time out.
- I would like to know what different between
/faces/protected/*and/faces/protected/**. I used one(*). It works.