Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/jsf/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何在JSF应用程序中实现注销过程_Jsf - Fatal编程技术网

如何在JSF应用程序中实现注销过程

如何在JSF应用程序中实现注销过程,jsf,Jsf,如何在JSF应用程序中实现注销过程{ ((HttpSession)FacesContext.getCurrentInstance().getExternalContext() .getSession()).invalidate(); 返回“主页”; } 及 谢谢你,波佐。1个问题我的faces会话映射对象,即FacesContext.getCurrentInstance().getExternalContext().getSessionMap()是否也将无效?@Bozho当用户使用j_安全检

如何在JSF应用程序中实现注销过程{ ((HttpSession)FacesContext.getCurrentInstance().getExternalContext() .getSession()).invalidate(); 返回“主页”; } 及



谢谢你,波佐。1个问题我的faces会话映射对象,即FacesContext.getCurrentInstance().getExternalContext().getSessionMap()是否也将无效?@Bozho当用户使用j_安全检查登录时,是否有标准方法设置msg.logout变量?这个方法如何<代码>FacesContext.getCurrentInstance().getExternalContext().invalidateSession()
<h:commandLink value="#{msg.logout}" action="#{logoutBean.logout}" />