Check out the removeValue(java.lang.String name) method of HttpSession.

----- Original Message -----
From: Duong Tung Lam <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, October 15, 2000 9:03 AM
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

Reply via email to