I\'ve been trying to follow this answer primarily but I always get redirected to my login.xhtml (except for when i log in from the login page) because this...
Ap
@SessionScoped is from javax.enterprise.context.SessionScoped
This one works in combination with CDI @Named only. As you're using JSF @ManagedBean, you should be using the scope annotations from javax.faces.bean package instead.
import javax.faces.bean.ManagedBean;
import javax.faces.bean.SessionScoped;
@ManagedBean
@SessionScoped
public class AppManager implements Serializable {
Without a valid scope, a JSF managed bean would behave like @RequestScoped which effectively means that it's constructed again and again on every request.