FacesContext.getCurrentInstance().getExternalContext().getSessionMap().put("MyBeanMyValue", myValue);
FacesContext.getCurrentInstance().getExternalContext().getSessionMap().get("MyBeanMyValue");
((HttpServletRequest)FacesContext.getCurrentInstance().getExternalContext().getRequest()).getSession().getAttribute("user");