Return-Path: Mailing-List: contact cocoon-users-help@xml.apache.org; run by ezmlm Delivered-To: mailing list cocoon-users@xml.apache.org Received: (qmail 55273 invoked from network); 11 Oct 2000 19:24:22 -0000 Received: from plan9ws1.uct.usm.maine.edu (HELO plan9ws1) (130.111.135.31) by locus.apache.org with SMTP; 11 Oct 2000 19:24:22 -0000 Received: from mcordes by plan9ws1 with local (Exim 3.16 #1 (Debian)) id 13jRUA-0001rv-00 for ; Wed, 11 Oct 2000 15:24:18 -0400 Date: Wed, 11 Oct 2000 15:24:18 -0400 From: Matthew Cordes To: cocoon-users@xml.apache.org Subject: HttpSession object and XSP pages Message-ID: <20001011152418.A7176@plan9ws1.uct.usm.maine.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i Sender: Matthew Cordes X-Spam-Rating: locus.apache.org 1.6.2 0/1000/N Hello all. Is there any reason why creating a session in 1 xsp page ala session = request.getSession( true ); works, but in a different page ( that the first one refers to ) doing: session = request.getSession( false ); always returns null? Or session = request.getSession( true ); in the second page returns a different session object w/ a different session id. I guess what I'm asking is, does the session persist between xsp pages that are within the same context? I'm pretty sure it should. Anyone have any problems with this and Tomcat-3.1? Is there anything special I need in my web.xml to allow xsp pages to share a session with each other? The session works fine so long as I refer to 1 page ( e.g. I can store data, leave the page and return and the data remains ), but if I redirect ( response.sendRedirect( ... ) to a new page and try to get the same session info it is either null or a new object. Any ideas? -Matt