Is this a re-post? I saw some pal posted a very good explaination why you cann't do it. Are you not reading those posts?.
My suggestion is to use session.removeAttribute(attr_name) or simply set those attributes to null. -----Original Message----- From: shyam [mailto:[EMAIL PROTECTED] Sent: June 6, 2003 2:40 PM To: Tomcat Users List Subject: Clear user session Hi All, I just moved my webapp from jrun to tomcat. I have a method which clears the user session. The code snippet is Enumeration session_var = session.getAttributeNames(); while(session_var.hasMoreElements()) { String key=(String)session_var.nextElement(); I am getting an error here and the exception is java.util.ConcurrentModificationException at java.util.HashMap$HashIterator.nextEntry How can I resolve this error. Thanks a lot in advance shyam --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]