I have a JSF 1.2 application that has a session going on and whenever the session timeouts or the user presses the browse back or refresh page, the session gets messed up and things start to behave unexpectedly.
I would like to simply bring the user back to a predefined login screen whenever that happens.
Authentication is handled inside the JSF application.
Thanks in Advance!
Try using PhaseListener
Example:
MyPhaseListener.java
Configuring the listener in faces-config.xml
Yes, you dont need to put “.java”.