That obviously won't be reliable.
Look up removeAttribute on Session.
> -----Original Message-----
> From: A mailing list for discussion about Sun Microsystem's Java Servlet
> API Technology. [mailto:[EMAIL PROTECTED]]On Behalf Of Duong
> Tung Lam
> Sent: Sunday, October 15, 2000 8:03 AM
> To: [EMAIL PROTECTED]
> Subject: Session Tracking API problem!!
>
>
> Hello everybody! I'm learning Java Servlet by myself so I don't
> have much experience.
> I used "Session Tracking API" method to save my web pages
> infomations into server memory.
> But, unlike COOKIES, I cannot remove a NAME (only one) from
> HttpSession. When I used HttpSession.invalidate(),
> all NAMES and its VALUES immediate destroyed!!
>
> I have used the following solution: I get all names and values
> into Servlet array of strings, EXCEPT the name I want to remove.
> After that,
> I invalidate() session and put array into session again.
>
> I FEEL THIS SOLUTION IS NOT GOOD, DO YOU HAVE OTHER SOLUTION?
>
> PLEASE tell me if you know! THANKS YOU VERY MUCH!
>
> __________________________________________________________________
> _________
> To unsubscribe, send email to [EMAIL PROTECTED] and include
> in the body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources: http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
>
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html