John, I think you need to re-architect / debug your JSP's and Servlets so that you use session.removeAttribute() and session.invalidate() properly. If used correctly, either of the methods would clear out the values in your session and not leave as you wrote, "garbage data (data entered in the first)" in the session.
Regards, Richard At 07:15 PM 11/12/2002 -0600, you wrote:
Hi, Experts, Have some problem with session and tomcat and would like to get some help from. I have an application on the web that uses tomcat standalone. Using JSP pages and servlet together to process some form data. An JSP create array object, puts it into session. In another JSP, get data from session object and sends it to servlet to store data into database. Form data varies depends on what client select options. If the first time, the form has more data and then in the second time to come to this form again to feed less data, there are always some garbage data (data entered in the first) in the session object. Quit browser can not clear data until restart tomcat. I have tried to use session.removeAttribute(), session.invalidate() but nothing can change this situation. Anyone has some idea how to handle this to resolve the problem? Thanks John ___________________________________________________________________________ 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