Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Tomcat Users »

Clear user session

shyam

2003-06-06

Replies:

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: tomcat-user-unsubscribe@(protected)
For additional commands, e-mail: tomcat-user-help@(protected)


©2008 junlu.com - Jax Systems, LLC, U.S.A.