session.invalidate(); in a jsp should work.

Given a servlet with

       ....
  public void doPost(HttpServletRequest req, HttpServletResponse res)
      throws ServletException, IOException {

      HttpSession session = req.getSession(true);
       ....

use
      session.invalidate();


I hope that helps.

.Donnell

Thang Nguyen wrote:
>
> Hi,
>
> I have this question regarding to a session bean.   An example for this would be a
> shopping cart, my beans are kept throughout all the pages (therefore I use session
> beans), however, on my last page where I want to submit the order.
> I want to delete all my beans after the order have been executed successfully.  The
> reason I want to do this is to  avoid the users submit twice or maybe accidently
> submit the outdated information.
>
> How can I do this?   Thanks in advance.
> TN
>
> ===========================================================================
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to