I need to allow only logged-in users to most of the pages of my application.
I am developing a Java Enterprise application with JSF 2.
Does anyone know how I can do that? maybe
There are many ways to achieve that. The easiest and probably the most popular way would be to use servlet filter, you can find more information about such a mechanism here: Basic Security in JSF