Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 20538 invoked from network); 16 Nov 2005 00:53:12 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 16 Nov 2005 00:53:12 -0000 Received: (qmail 3635 invoked by uid 500); 16 Nov 2005 00:52:58 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 3611 invoked by uid 500); 16 Nov 2005 00:52:58 -0000 Mailing-List: contact users-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Users List" Delivered-To: mailing list users@tomcat.apache.org Received: (qmail 3600 invoked by uid 99); 16 Nov 2005 00:52:57 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 15 Nov 2005 16:52:57 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [205.158.62.152] (HELO ws6-5.us4.outblaze.com) (205.158.62.152) by apache.org (qpsmtpd/0.29) with SMTP; Tue, 15 Nov 2005 16:52:49 -0800 Received: (qmail 19834 invoked from network); 16 Nov 2005 00:52:34 -0000 Received: from unknown (HELO d3) (andy@fritter.net@62.49.21.180) by ws6-5.us4.outblaze.com with SMTP; 16 Nov 2005 00:52:34 -0000 From: "Andy" To: "Tomcat Users List" Subject: RE: request.getSession(false) incorrectly creates a session Date: Wed, 16 Nov 2005 00:52:34 -0000 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) In-Reply-To: <4379CCDA.8030907@joedog.org> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 Importance: Normal X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Len - Ahh, nice to know it's not my imagination. Well never mind, I just wrote a kludge to work around it for now. Tim - Thanks for the reply but I test stuff using Spring's mock objects so no actual JSP's are involved, anyway seems it is broke in some cases. Andy. -----Original Message----- From: Tim Funk [mailto:funkman@joedog.org] Sent: 15 November 2005 11:56 To: Tomcat Users List Subject: Re: request.getSession(false) incorrectly creates a session If you are using jsp - you need <%@page session='false'%> in your page otherwise - a session is created for your whether you use it or not. -Tim Andy wrote: > Hi, > > When I deploy my web app and call request.getSession(false), according to > the > javadoc, if a session does not exist null is returned. However I'm getting > an > object returned when I have not created a session myself. > > The object is an instance of this class - > > org.apache.catalina.session.StandardSessionFacade > > As a result my unit tests, using mock objects, all work fine, but when I > deploy my application it breaks because a session is created incorrectly, > it seems to me. > > I'm using Tomcat 5.5. Anybody care to enlighten me? --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org