Hi,
looks to me that this was included in a previous version of the API, but was removed for security reasons:
http://java.sun.com/j2ee/1.4/docs/api/javax/servlet/http/HttpSessionContext.html
Therefore the only way to get all sessions is probably a SessionListener.
HTH Christoph
Dale, Matt wrote:
Hi,
That doesn't answer Joseph's question. It tells him how to access the objects in his own session but not how to access other peoples sessions. I would be interested to see how this is done as well.
Ta Matt
-----Original Message----- From: Bernhard Slominski [mailto:[EMAIL PROTECTED] Sent: 23 February 2005 09:17 To: 'Tomcat Users List' Subject: AW: Getting other Sessions
Hi, HttpSession.getAttributeNames() should do what you want!From the javadoc:
"getAttributeNames public java.util.Enumeration getAttributeNames() Returns an Enumeration of String objects containing the names of all the objects bound to this session."
Cheers
Bernhard
-----Urspr�ngliche Nachricht----- Von: Joseph Shraibman [mailto:[EMAIL PROTECTED] Gesendet: Mittwoch, 23. Februar 2005 05:18 An: [email protected] Betreff: Getting other Sessions
I want to make an admin page in my application. I needs to be able to get access to all the current Session objects to access their attributes. Is this possible?
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
------------------------------------------------------------------------
Any opinions expressed in this E-mail may be those of the individual and not necessarily the company. This E-mail and any files transmitted with it are confidential and solely for the use of the intended recipient. If you are not the intended recipient or the person responsible for delivering to the intended recipient, be advised that you have received this E-mail in error and that any use or copying is strictly prohibited. If you have received this E-mail in error please notify the beCogent postmaster at [EMAIL PROTECTED] Unless expressly stated, opinions in this email are those of the individual sender and not beCogent Ltd. You must take full responsibility for virus checking this email and any attachments. Please note that the content of this email or any of its attachments may contain data that falls within the scope of the Data Protection Acts and that you must ensure that any handling or processing of such data by you is fully compliant with the terms and provisions of the Data Protection Act 1984 and 1998.
------------------------------------------------------------------------
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
