Ok, thanks a lot! On Wed, 2002-12-18 at 09:29, Mike W-M wrote: > Yep, that's the problem! > Try keeping a list of the names that you want to remove until you've > finished iterating the loop, then remove them all at once? > > Mike > ----- Original Message ----- > From: "Felipe Schnack" <[EMAIL PROTECTED]> > To: "Tomcat Users List" <[EMAIL PROTECTED]> > Sent: Wednesday, December 18, 2002 11:12 AM > Subject: Re: HttpSession issues > > > Yes, but this is related to an user session. How is possible to have > concurrent updates on an user session when an user have only one browser > window open and does a refresh? This iteration is done in a taglib. And > why this only happens when he refreshes the pages, but not when he hits > enter in the url bar? > BTW, inside this loop in some circumstances I change the session > attributes. In other words, the code look like this: > > Enumeration attrs = session.getAttributeNames(); > while(attrs.hasMoreElements()) > { > String name = (String)attrs.nextElement(); > Object value = session.getAttribute(name); > if (<some weird conditions>) > { > session.removeAttribute(name); > } > } > > This removeAttribute() is the problem? > > > > > -- > To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> > --
Felipe Schnack Analista de Sistemas [EMAIL PROTECTED] Cel.: (51)91287530 Linux Counter #281893 Faculdade Ritter dos Reis www.ritterdosreis.br [EMAIL PROTECTED] Fone/Fax.: (51)32303328 -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>