public class SessionController {
public Object getSessionAtribute(String info) {
FacesContext fc = FacesContext.getCurrentInstance();
HttpSession session = (HttpSession) fc.getExternalContext().getSession(false);
return session.getAttribute(info);
}
public void setSessionAtribute(String info, Object o ) {
FacesContext fc = FacesContext.getCurrentInstance();
HttpSession session = (HttpSession) fc.getExternalContext().getSession(true);
session.setAttribute(info, o);
}
public void invalidarSessao() {
FacesContext fc = FacesContext.getCurrentInstance();
HttpSession session = (HttpSession) fc.getExternalContext().getSession(false);
session.invalidate();
}
}
Não teria problema entre os usuários?