Return-Path: Mailing-List: contact tomcat-dev-help@jakarta.apache.org; run by ezmlm Delivered-To: mailing list tomcat-dev@jakarta.apache.org Received: (qmail 27676 invoked from network); 11 Feb 2000 16:33:35 -0000 Received: from unknown (HELO zeus.netdecisions.co.uk) (195.40.154.66) by locus.apache.org with SMTP; 11 Feb 2000 16:33:35 -0000 Received: from pop.office.netdecisions.co.uk ([10.0.0.2] helo=ndadmx01.office.netdecisions.co.uk) by zeus.netdecisions.co.uk with esmtp (Exim 3.03 #1) id 12JJ3r-000CbP-01 for tomcat-dev@jakarta.apache.org; Fri, 11 Feb 2000 16:36:51 +0000 Received: by apollo.office.netdecisions.co.uk with Internet Mail Service (5.5.2650.21) id <1RKSMK8W>; Fri, 11 Feb 2000 16:29:00 -0000 Message-ID: <7D508F33AD7AD311B634009027CC6331566FBD@apollo.office.netdecisions.co.uk> From: Steve jones To: "Tomcat-Dev (E-mail)" Subject: Cookies Date: Fri, 11 Feb 2000 16:28:56 -0000 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2650.21) Content-Type: text/plain; charset="iso-8859-1" Here is the code snippet: /** * This method stores the cookies for this user. */ public static final void storeCookies(HttpServletResponse response, ShoppingCart cart){ System.out.println("Saving cookies " + cart.getId() + " with value " + cart.toString()); response.addCookie(newCookie(cart.getId(), cart.toString())); response.addCookie(newCookie("ShoppingCart", cart.getId())); response.addCookie(newCookie("CartCount", Integer.toString(cart.getNumberOfItems()))); System.out.println("Saved cookie"); } It works fine under servletrunner with jskd2.1 all of the cookies are stored and updated. However under Tomcat only the last item (CartCount) is actually being stored, the others are ignored. Any ideas ? Cheers Steve