From raphael@e-deal.com Tue Dec 12 10:58:38 2000 Return-Path: Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 89294 invoked from network); 12 Dec 2000 10:58:38 -0000 Received: from unknown (HELO valentin.e-deal.com) (194.150.19.253) by locus.apache.org with SMTP; 12 Dec 2000 10:58:38 -0000 Received: by valentin.e-deal.com with Internet Mail Service (5.5.2650.21) id ; Tue, 12 Dec 2000 11:56:16 -0000 Message-ID: <8F6DC3956547D411BAFF00B0D03D0DF511D285@valentin.e-deal.com> From: =?iso-8859-1?Q?Rapha=EBl_Lemaitre?= To: tomcat-user@jakarta.apache.org Subject: How can i share session between servlet and jsp Date: Tue, 12 Dec 2000 11:56:14 -0000 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2650.21) Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Spam-Rating: locus.apache.org 1.6.2 0/1000/N Hi, I've got a big urgent problem : it seems that mu JSPs and my servlets don't share the same session. I explain :=20 I have a JSP login form which action points to a servlet. In this = servlet, i create the HttpSession object using request.getSession(true), i put an userID (String) in the session and forward to a JSP. In this JSP and = all the JSPs i access directly (without passing through a servlet), the userID = is still in the session. But when i want to follow a hyperlink that points = to a servlet, i do not get the same session (session Ids are different). How = can i do to make this work? thanks in advance -- Rapha=EBl LEMAITRE=20 mailto:raphael.lemaitre@e-deal.com=20 e-deal=20 86-88 rue du Vieux Pont, 92000 Nanterre=20 http://www.e-deal.com + 33.1.41.37.91.00=20