[jboss-user] [JBoss Seam] - Re: How to get http session id
jgreene
do-not-reply at jboss.com
Mon Jan 7 16:36:07 EST 2008
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)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4117734#4117734
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4117734
More information about the jboss-user
mailing list