How do I retrieve the session ID value inside a JSF managed bean?
FacesContext fCtx = FacesContext.getCurrentInstance(); HttpSession session = (HttpSession) fCtx.getExternalContext().getSession(false); String sessionId = session.getId();