Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@www.apache.org Received: (qmail 51186 invoked from network); 1 Mar 2005 22:11:39 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 1 Mar 2005 22:11:39 -0000 Received: (qmail 50811 invoked by uid 500); 1 Mar 2005 22:11:24 -0000 Delivered-To: apmail-jakarta-tomcat-user-archive@jakarta.apache.org Received: (qmail 50792 invoked by uid 500); 1 Mar 2005 22:11:24 -0000 Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Tomcat Users List" Reply-To: "Tomcat Users List" Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 50779 invoked by uid 99); 1 Mar 2005 22:11:24 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=RCVD_BY_IP,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: domain of garthpatil@gmail.com designates 64.233.184.206 as permitted sender) Received: from wproxy.gmail.com (HELO wproxy.gmail.com) (64.233.184.206) by apache.org (qpsmtpd/0.28) with ESMTP; Tue, 01 Mar 2005 14:11:24 -0800 Received: by wproxy.gmail.com with SMTP id 58so56172wri for ; Tue, 01 Mar 2005 14:11:22 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:references; b=P1/SHe962XxBX0r/60VssM98PqdYqY+EfUB234xw7Mh16y+NvdCw1ln7O0DTYJZ9R9nLjgfzDkT4c5F3sKEYgFcwZBAbL39LGkyIyWT9upQ/2rOOMABaS3fbXaYNWfDsxd+Kn1QbE5EUUC00mjf2Fw5t7k+BdNlblO4kugxVuVA= Received: by 10.54.2.77 with SMTP id 77mr55558wrb; Tue, 01 Mar 2005 14:11:21 -0800 (PST) Received: by 10.54.11.46 with HTTP; Tue, 1 Mar 2005 14:11:21 -0800 (PST) Message-ID: <82d376ab050301141165e0da4d@mail.gmail.com> Date: Tue, 1 Mar 2005 14:11:21 -0800 From: Garth Patil Reply-To: Garth Patil To: tomcat-user@jakarta.apache.org Subject: Re: Is it possible to use a parameter other than JSESSIONID to maintain session? In-Reply-To: <82d376ab05022817015e0dfdfd@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit References: <82d376ab05022817015e0dfdfd@mail.gmail.com> X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Changing the name in Globals.java seems to partially work. Now, in order to have Tomcat just use that value, and not try to rewrite it (or expect it in a specific format), I need to find where in the code Tomcat looks up that parameter, and where it rewrites it to the URL. Can anyone familiar with the code point me in the right direction? Thanks again, Garth > You *might* be able to recompile tomcat with only changing: > jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/Globals.java > > -Tim > > Garth Patil wrote: > > Hi, > I'm currently working on a server application using Tomcat, and I've > run into a snag. The clients for the application are custom HTTP > clients (a provider's custom client that won't be changing on our > behalf) that do not have the ability to persist the JSESSIONID in the > request. However, there is already a unique parameter (let's call it > CUSTOMPARAM) that they do send with every POST to us. I still want to > use Tomcat's sessioning, but I need it to do two things: > 1. Use the CUSTOMPARAM as the unique session parameter. > 2. Not rewrite the parameter in the response, leaving that control to > my application. > Is there a way to just tell Tomcat in the configuration that I want it > to use a different parameter to identify the session, and that I don't > need it to rewrite it in my response? I've been through the docs, a > book on Tomcat 5, and the mailing list archives, and I haven't been > able to find anything. > Thanks, > Garth > --------------------------------------------------------------------- To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: tomcat-user-help@jakarta.apache.org