How to terminate a session?
800332Oct 7 2004 — edited Oct 7 2004Hi guys,
I wanna terminate a session when user has signed out. I use the code below but then I go to Tomcat manager to check the session, it's still there.
public String logoutAction() {
FacesContext context = FacesContext.getCurrentInstance();
HttpSession session = (HttpSession) context.getExternalContext().getSession(false);
session.invalidate();
return PageNavigator.HOME;
}
Pls help ! Thanks !