Retrieving session ID value from a JSF request

后端 未结 2 561
悲&欢浪女
悲&欢浪女 2021-01-03 22:14

How do I retrieve the session ID value inside a JSF managed bean?

2条回答
  •  庸人自扰
    2021-01-03 22:35

    You try

    {String uuidFc = FacesContext.getCurrentInstance().getExternalContext().getSessionId(true); }

    This line return the facesContext sessionId value

提交回复
热议问题