I have a manged bean that is session scoped as such:
Upon a user pressing a login button, I save the authenticated user in the LoginFormBean. When the next page is displayed, the authenticatedUser is set and displays correctly and the resulting page (which displays correctly) has:
Everything to this point seems to be functioning correctly.
The page where the authenticated user is displayed correctly has several URLs and a form. For "some" unknown reason, as soon as a URL to another page in my application is chosen, or a command button is chosen, the authenticated User is wiped out almost as if the SessionScoped bean is no longer in the session.
Is there something that I could be missing here that would be causing this issue?
Thanks in advance.
Edit: I removed the unnecessary managed property annotation from authenticatedUser.
Joined: Feb 12, 2010
Problem solved. There are "two" SessionScoped attributes and I was importing the wrong one: