This content has been marked as final.
Show 1 reply
-
1. Re: How to get http session id
jgreene Jan 7, 2008 4:36 PM (in response to jgreene)I found a solution on this forum that seems to work. Here's the code and original forum link:
FacesContext facesContext = FacesContext.getCurrentInstance(); ExternalContext externalContext = facesContext.getExternalContext(); HttpSession session = (HttpSession)externalContext.getSession(true); sessionId = session.getId();
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4117251#4117251)