title: How to find whether all the data were added or removed in a session?
body: <p>I am using the following <code>getSession()</code> method to obtain all the attributes that are being stored in a session. Is there a way to find out whether all the data that were added or removed each time when the user is going through the different pages in the application.</p>
  
  <pre><code>  protected HttpServletRequest getRequest() {
          return (HttpServletRequest) FacesContext.getCurrentInstance()
                  .getExternalContext().getRequest();
      }
    protected HttpSession getSession() {
          return getRequest().getSession();
      }
  </code></pre>