2009-04-21 3 views

Trả lời

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

Tôi vừa mới trả lời với hầu như cùng một mã chính xác :) –