General J2EE: How to get all attributes and their objects bound to session

  1. Is there a way to get all the attributes and their associated objects bound to the app server's HttpSession.

    Basically i want to be able to write a little program that could return a map of some sort of all the attributes in session and the objects for all users. Is this possible? I dont see why not.
  2. javax.servlet.http.HttpSession class includes:

    public java.util.Enumeration getAttributeNames()

    for each: getAttribute(name).