title: Is faces context available in HttpSessionListener?
body: <p>I am trying to run below code in my application from HttpSessionListener.But i see different outputs for session id.Session Init Listener is triggered by default when i start my jsf application.</p>
  
  <pre><code>@Override
      public void sessionCreated(HttpSessionEvent se) {
          FacesContext fc=FacesContext.getCurrentInstance();
          System.out.println("session id01--&gt;"+se.getSession().getId());
          HttpSession session= ((HttpServletRequest) fc.getExternalContext().getRequest()).getSession(false);
          System.out.println("httpSessionId--&gt;" + (session!=null?session.getId():""));
  }
  </code></pre>
  
  <p>First sysout prints session id.
  Second one is printing null.</p>
  
  <p>Why faces context is returning session as null even though session is created ?</p>
  
  <p>Regards,
  -Vissu Adusumalli.</p>