Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 20326 invoked from network); 6 Nov 2006 09:52:16 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 6 Nov 2006 09:52:16 -0000 Received: (qmail 7636 invoked by uid 500); 6 Nov 2006 09:52:10 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 7617 invoked by uid 500); 6 Nov 2006 09:52:10 -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 7585 invoked by uid 99); 6 Nov 2006 09:52:10 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 06 Nov 2006 01:52:10 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: local policy) Received: from [212.150.137.117] (HELO hosting01.net-gurus.net) (212.150.137.117) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 06 Nov 2006 01:51:55 -0800 Received: from localhost (localhost [127.0.0.1]) by hosting01.net-gurus.net (Postfix) with ESMTP id 64B621C79A for ; Mon, 6 Nov 2006 12:54:28 +0200 (IST) Received: from hosting01.net-gurus.net ([127.0.0.1]) by localhost (hosting01.net-gurus.net [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 16244-08 for ; Mon, 6 Nov 2006 12:54:28 +0200 (IST) Received: from [192.118.54.163] (unknown [192.118.54.163]) by hosting01.net-gurus.net (Postfix) with ESMTP id 06EDF1C6E1 for ; Mon, 6 Nov 2006 12:54:28 +0200 (IST) Message-ID: <454F0588.40000@atelis.net> Date: Mon, 06 Nov 2006 11:51:04 +0200 From: Assaf Flatto User-Agent: Thunderbird 1.5.0.7 (X11/20060915) MIME-Version: 1.0 To: Tomcat Users List Subject: Re: changing the length of the jsessionid References: <453D5AD0.2090208@atelis.net> <453D4819.1060608@christopherschultz.net> In-Reply-To: <453D4819.1060608@christopherschultz.net> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: amavisd-new at net-gurus.net X-Virus-Checked: Checked by ClamAV on apache.org I took the sources of the 5.0.30 tomcat and made the changes, recompiled the RPM and installed it on one of my QC servers . the session id that is generated from the tomcat is indeed 30 chars but now it seems that the jvmroute and the balancer in front of it are not adding the ".x" to the jsessionid . my balancer config is : ProxyPass / balancer://mycluster/ lbmethod=bytraffic stickysession=jsessionid nofailover=Off BalancerMember ajp://172.31.1.1:8081 ttl=60 route=1 # BalancerMember http://172.31.1.2:8080 ttl=60 route=2 # BalancerMember ajp://172.31.1.3:8080 ttl=60 route=3 Order Allow,Deny Allow from all I specifically changed the ajp port to 8081 - it is not an error , the connector on the tomcat is defined : and the jvmroute is defined : but the end result is cookie: JSESSIONID=FB5B5218F8A9021652FDE8C270F991 any guess why that is ? Thanks Christopher Schultz wrote: > Assaf, > > >> Does anyone know how i can shorten the length of the jsessionid from 32 >> chars to 30 ? >> > > In Tomcat 4.1, the class org.apache.catalina.session.ManagerBase creates > sessions and assigns ids to them. The source I'm looking at right now > uses a message digest algorithm (it's not clear which one, but probably > MD5) which returns a fixed-width string. > > I suppose you could modify this file directly and re-package it with > your deployment, or possibly even subclass it and somehow install it > without having to modify Tomcat's internals (I don't know how to specify > which Manager gets used by Tomcat... someone else will have to answer that). > > Any particular reason you want to shorten the session id? > > -chris > > > --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org