How can one safely invalidate a session? I've been trying various methods, including
the one below, and I ALWAYS get the Concurrent Modification Exception.

What is causing this and how can I invalidate a session without getting it?

500 Servlet Exception
java.util.ConcurrentModificationException

I'm using the Resin 1.1b1 serlvet engine, with Apache.

I've tried code from this mailing list, plus code from Java Servlet Programming by
Jason Hunter and William Crawford. No matter what I do I get this exception.

Any help would be greatly appreciated.

Scott

"Craig R. McClanahan" wrote:

> Moonim Masaoud wrote:
>
> > Hi,
> >
> > First Wishing you all a Happy and Prosperous New Year !
> >
> > I have a JSP which has a list of links. These links point to other JSPs. When
> > I click one of these links, I want to start a new session.
> >
> > Now is there a way to branch of into a new session, when the user clicks on
> > one of those links ?
> >
>
> At the top of each linked-to page, add a scriptlet that invalidates the current
> session and creates a new one:
>
>     <%
>         session.invalidate();
>         session = request.getSession();
>     %>
>
> In these pages themselves, you won't be able to refer to any session-scope beans
> because you are wiping them out, but subsequent pages will be able to.
>
> >
> > Thanx,
> > Masaoud
> >
>
> Craig
>
> ===========================================================================
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
> FAQs on JSP can be found at:
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
FAQs on JSP can be found at:
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html

Reply via email to