General J2EE: How to get all attributes and their objects bound to session
Is there a way to get all the attributes and their associated objects bound to the app server's HttpSession.
- Posted by: Poetic Justice
- Posted on: February 21 2006 14:59 EST
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.
- How to get all attributes and their objects bound to session by Kit Davies on February 22 2006 06:26 EST
javax.servlet.http.HttpSession class includes:
public java.util.Enumeration getAttributeNames()
for each: getAttribute(name).