JSF Session Beans are not being invalidated on logout
843844Sep 30 2009 — edited Sep 30 2009I 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?