Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 42306 invoked from network); 9 Nov 2005 19:12:56 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 9 Nov 2005 19:12:56 -0000 Received: (qmail 16368 invoked by uid 500); 9 Nov 2005 19:12:41 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 16334 invoked by uid 500); 9 Nov 2005 19:12:40 -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 16323 invoked by uid 99); 9 Nov 2005 19:12:40 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 09 Nov 2005 11:12:40 -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 [216.227.215.170] (HELO chiron.lunarpages.com) (216.227.215.170) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 09 Nov 2005 11:12:33 -0800 Received: from zammet2 by chiron.lunarpages.com with local (Exim 4.52) id 1EZvMp-0003Eu-6n; Wed, 09 Nov 2005 11:12:19 -0800 Received: from 170.201.180.136 ([170.201.180.136]) (SquirrelMail authenticated user fzlists@omnytex.com) by webmail.chiron.lunarpages.com with HTTP; Wed, 9 Nov 2005 14:12:19 -0500 (EST) Message-ID: <57039.170.201.180.136.1131563539.squirrel@webmail.chiron.lunarpages.com> In-Reply-To: <437245DC.3010106@maz.org> References: <437245DC.3010106@maz.org> Date: Wed, 9 Nov 2005 14:12:19 -0500 (EST) Subject: Re: disabling sessions in certain parts of a webapp From: "Frank W. Zammetti" To: "Tomcat Users List" Cc: users@tomcat.apache.org User-Agent: SquirrelMail/1.4.4 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - chiron.lunarpages.com X-AntiAbuse: Original Domain - tomcat.apache.org X-AntiAbuse: Originator/Caller UID/GID - [32746 1232] / [47 12] X-AntiAbuse: Sender Address Domain - omnytex.com X-Source: X-Source-Args: X-Source-Dir: X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N I can't think of any drawbacks to the filter, and tha's what I would have suggested. Although, it probably doesn't even have to be as complicated as a wrapper... simply check for an existing session for the paths you do want a session created for, and if none is present go ahead and create it. I *think* that would do the trick. -- Frank W. Zammetti Founder and Chief Software Architect Omnytex Technologies http://www.omnytex.com AIM: fzammetti Yahoo: fzammetti MSN: fzammetti@hotmail.com On Wed, November 9, 2005 1:54 pm, Brian Moseley said: > my web application has three separate interfaces: an html ui, webdav, > and a custom http/xml protocol. clients of the latter two interfaces are > unaware of the http session, so i'd prefer that sessions not even be > constructed when requests come in through those interfaces. > > i see that StandardManager and PersistentManager have maxActiveSessions > attributes, which i could potentially set to 0, but that isn't a > solution since i *do* want to have sessions for the html ui. > > short of writing a new implementation of Manager, is there a way for me > to specify that sessions should not be created for, say, all requests to > /foo/*? > > one idea was a filter that wraps the request with a class that overrides > getSession. are there any drawbacks to that approach? > > > --------------------------------------------------------------------- > 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