No, I do not want to invalidate whole session. I have some varibales that I
want keep. But I want some to alive only in the request.
thanks
anil
Alin Simionoiu wrote:
> have you try to invalidate the session ?
>
> ----- Original Message -----
> From: "anil" <[EMAIL PROTECTED]>
> To: "tomcat" <[EMAIL PROTECTED]>
> Sent: Tuesday, May 22, 2001 12:26 PM
> Subject: ===>Session Question<===
>
> > Hello,
> >
> > I do have servlet that process request and forward to another servlet.
> > like.
> > ->request-----> Servlet1------->servlet2
> > session-obj-1 session-obj1(destroy
> > session-obj1 request is done-user gets html back)
> >
> > At the end of sevlet2, user get html window back.
> > I want setup a session object in servlet valid only for that request. I
> > mean it should not valid beyond servlet2.
> > if I use request.getSession(x), this session-obj1 is valid until the
> > browser is closed.
> >
> > is there anyway to do this without calling removeAttribute() ????
> >
> > thanks
> >
> > anil
> >