how to implement 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}" />
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With