Display user info on postback from protected pages in JSF 2.0
问题 I have a JSF app with a div on the left that displays the user name of logged in User on the main page. I store the logged in users info in a sessionScoped managed bean. I have couple of protected pages on the main page for which I use container managed JDBC realm. If the user directly clicks on the links without logging in , container managed security kicks in and asks the user to Log in , which is fine. Now if the user hits the back button , the browser displays the main page . Now how do I