Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Blocker Blocker
    • Resolution: Invalid
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      In my application, whenever I am logging out, I am calling the following logic:

      ExternalContext ectx = FacesContext.getCurrentInstance().getExternalContext();
      HttpSession session = (HttpSession)ectx.getSession(false);
      session.invalidate();

      However, the problem is that when I log back into this application, I need to have user id to retrieve some initiial information from DB. When I call FacesContext.getCurrentInstance().getExternalContext().getRemoreUser(), it returns null because the FacesContext is null. Is the way I am invalidating the seesion correct? Why I cannot access FacesContext? I have to redeploy the application in order to proceed correctly with FacesContext and getRemoteUser().

        Activity

        Hide
        Tyler Johnson added a comment -

        Hi Chris,

        I have a few questions which will help in my investigation:

        • When you logout are you navigating to a different page (logout or login page)?
        • Is your login page an ICEfaces controlled page, or is it a plain JSF/HTML page?
        • Are you using a specific authentication framework/solution (Spring Security, container based, ect)?

        Thanks,
        Arran

        Show
        Tyler Johnson added a comment - Hi Chris, I have a few questions which will help in my investigation: When you logout are you navigating to a different page (logout or login page)? Is your login page an ICEfaces controlled page, or is it a plain JSF/HTML page? Are you using a specific authentication framework/solution (Spring Security, container based, ect)? Thanks, Arran
        Hide
        Ken Fyten added a comment -

        Marking as Closed / Invalid as part of legacy ICEfaces ICE / Compat component JIRA cleanup.

        Note: This issue may be resolved in a newer ICEfaces release, available here: http://www.icesoft.org/java/downloads/icefaces-downloads.jsf

        If the issue persists with the current ICEfaces release, please create a new JIRA for it.

        Show
        Ken Fyten added a comment - Marking as Closed / Invalid as part of legacy ICEfaces ICE / Compat component JIRA cleanup. Note: This issue may be resolved in a newer ICEfaces release, available here: http://www.icesoft.org/java/downloads/icefaces-downloads.jsf If the issue persists with the current ICEfaces release, please create a new JIRA for it.

          People

          • Assignee:
            Unassigned
            Reporter:
            Tyler Johnson
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: