Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to implement logout process in JSF application

Tags:

jsf

how to implement logout process in JSF application

like image 807
rahul_d_m Avatar asked Mar 23 '10 11:03

rahul_d_m


1 Answers

public String logout() {
    ((HttpSession) FacesContext.getCurrentInstance().getExternalContext()
         .getSession()).invalidate();
     return "homePage";
}

and

<h:commandLink value="#{msg.logout}" action="#{logoutBean.logout}" />
like image 161
Bozho Avatar answered Oct 23 '22 02:10

Bozho