Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

JSF session problem

843844Oct 19 2007 — edited Nov 8 2007
Hi there,
My problem is, when I open n times the same browser to invoke my login page to login, i become always the same session with the same sessionID. In tomcat manager tools. It shows also only one session. When I logout in one of the browser, the rest is also dead.
By loggingon I get the session with the following code:
FacesContext context=FacesContext.getCurrentInstance();
HttpSession session = (HttpSession) context.getExternalContext().getSession(true);
By loggingout I destroy the session so:
HttpSession session = (HttpSession) context.getExternalContext().getSession(false);
session.invalidate();
Can you tell me how can I fix the problem?

m_z
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 6 2007
Added on Oct 19 2007
4 comments
728 views