2017  Kodetalk | Feedback | Privacy Policy | Terms | About

Redirecting on session timeout in JSF-Richfaces-facelet

Using JSF with RichFacecs to create a web portal .I want to redirect the user to the login page on session time out. I was trying to throw a SecurityException in session expiry/logged out stage as follows


But this is not working for me. Which is the right way of handling this ?
Answer is