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 Beans are not being invalidated on logout

843844Sep 30 2009 — edited Sep 30 2009
I have a session scoped bean. When logging out i do the following

final HttpSession session = (HttpSession)ctx.getExternalContext().getSession(false);
Map map = ctx.getExternalContext().getSessionMap();
map.clear();
if(session != null) {
session.invalidate();
}


and then redirect to login page. but when logging back in the session bean is populated with data from previous session! why is this happening?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 28 2009
Added on Sep 30 2009
4 comments
563 views