CodesJava

Easy learning with example program codes

How to terminate the session in JSF?


public String logout() {
FacesContext fc = FacesContext.getCurrentInstance();
HttpSession session = (HttpSession) fc.getExternalContext().getSession(false);
session.invalidate();
return "loginPage";
}

Related topics

Posted in JSF   


Copyright © 2018 CodesJava DMCA.com Protection Status SiteMap