how to implement logout process in JSF application
+2
A:
public String logout() {
((HttpSession) FacesContext.getCurrentInstance().getExternalContext()
.getSession()).invalidate();
return "homePage;
}
and
<h:commandLink value="#{msg.logout}" action="#{logoutBean.logout}" />
Bozho
2010-03-23 11:14:23
thank u Bozho. 1 question will my faces session map objects i.e. FacesContext.getCurrentInstance().getExternalContext().getSessionMap() will also be invalidated?
rahul_d_m
2010-03-24 17:23:01
they should be.
Bozho
2010-03-24 18:06:26