I have two kinds of users in my application - clients and sellers. I am using a PhaseListener
in JSF to prevent users from accessing pages without logging in, but after they are logged in I dont know how to prevent the user from change the URL in the location bar and accessing pages that he is not allowed too. E.g, preventing clients from accessing sellers pages.
Does anyone have an idea on how I could prevent such illegal accesses?