how to impl开发者_如何学Goement logout process in JSF application
public String logout() {
((HttpSession) FacesContext.getCurrentInstance().getExternalContext()
.getSession()).invalidate();
return "homePage";
}
and
<h:commandLink value="#{msg.logout}" action="#{logoutBean.logout}" />
精彩评论