2009-04-21 11 views

답변

37
FacesContext fCtx = FacesContext.getCurrentInstance(); 
HttpSession session = (HttpSession) fCtx.getExternalContext().getSession(false); 
String sessionId = session.getId(); 
+3

나는 거의 똑같은 코드로 대답하려고했다. :) –