title: setting and retrieving data from session
body: <p>My bean is request scoped. I am setting a data object in session using below code:</p>
  
  <pre><code>FacesContext context = FacesContext.getCurrentInstance();
  context.getExternalContext().getSessionMap().put("loggedInUser", loggedInUser);
  </code></pre>
  
  <p>I am trying to retrieve data in view using below line:</p>
  
  <pre><code>#{sessionScope["loggedInUser"].firstName}
  </code></pre>
  
  <p>But data in view comes out to be blank. How is this caused and how can I solve it?</p>