如何在JSF应用程序中实现注销过程
如何在JSF应用程序中实现注销过程{ ((HttpSession)FacesContext.getCurrentInstance().getExternalContext() .getSession()).invalidate(); 返回“主页”; } 及如何在JSF应用程序中实现注销过程,jsf,Jsf,如何在JSF应用程序中实现注销过程{ ((HttpSession)FacesContext.getCurrentInstance().getExternalContext() .getSession()).invalidate(); 返回“主页”; } 及 谢谢你,波佐。1个问题我的faces会话映射对象,即FacesContext.getCurrentInstance().getExternalContext().getSessionMap()是否也将无效?@Bozho当用户使用j_安全检
谢谢你,波佐。1个问题我的faces会话映射对象,即FacesContext.getCurrentInstance().getExternalContext().getSessionMap()是否也将无效?@Bozho当用户使用j_安全检查登录时,是否有标准方法设置msg.logout变量?这个方法如何<代码>FacesContext.getCurrentInstance().getExternalContext().invalidateSession()
<h:commandLink value="#{msg.logout}" action="#{logoutBean.logout}" />