Return-Path: Delivered-To: apmail-httpd-users-archive@www.apache.org Received: (qmail 12922 invoked from network); 14 Dec 2006 18:32:30 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 14 Dec 2006 18:32:30 -0000 Received: (qmail 79205 invoked by uid 500); 14 Dec 2006 18:31:45 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 79180 invoked by uid 500); 14 Dec 2006 18:31:45 -0000 Mailing-List: contact users-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: users@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list users@httpd.apache.org Received: (qmail 79158 invoked by uid 99); 14 Dec 2006 18:31:44 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 14 Dec 2006 10:31:44 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: local policy) Received: from [67.139.134.202] (HELO o2.hostbaby.com) (67.139.134.202) by apache.org (qpsmtpd/0.29) with SMTP; Thu, 14 Dec 2006 10:31:02 -0800 Received: (qmail 55653 invoked by uid 98); 14 Dec 2006 18:30:26 -0000 Received: from 127.0.0.1 by o2.hostbaby.com (envelope-from , uid 1013) with qmail-scanner-1.25 (clamdscan: 0.88.4/2330. Clear:RC:1(127.0.0.1):. Processed in 0.083437 secs); 14 Dec 2006 18:30:26 -0000 X-Qmail-Scanner-Mail-From: ceo@l-i-e.com via o2.hostbaby.com X-Qmail-Scanner: 1.25 (Clear:RC:1(127.0.0.1):. Processed in 0.083437 secs) Received: from unknown (HELO l-i-e.com) (127.0.0.1) by localhost with SMTP; 14 Dec 2006 18:30:25 -0000 Received: from 216.230.84.67 (SquirrelMail authenticated user ceo@l-i-e.com) by www.l-i-e.com with HTTP; Thu, 14 Dec 2006 12:30:25 -0600 (CST) Message-ID: <3898.216.230.84.67.1166121025.squirrel@www.l-i-e.com> In-Reply-To: <20061214161619.72104.qmail@web36904.mail.mud.yahoo.com> References: <20061214161619.72104.qmail@web36904.mail.mud.yahoo.com> Date: Thu, 14 Dec 2006 12:30:25 -0600 (CST) From: "Richard Lynch" To: users@httpd.apache.org Reply-To: ceo@l-i-e.com User-Agent: Hostbaby Webmail MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal X-Virus-Checked: Checked by ClamAV on apache.org Subject: Re: [users@httpd] loadbalancing with Apache - Sticky Sessions On Thu, December 14, 2006 10:16 am, Richard de Vries wrote: > I'm experiencing some problems with our loadbalancer > infrastructure over our Apache webservers and I've > been asked to set some sort of Session ID either in > the environment variables, or as part of the URL. > > Something the loadbalancers can use to determine > session information. > > I was thinking of mod_rewrite perhaps but I have not > been able to find any good information on generating > session IDs etc. > > Does anyone have any good recommendations / > suggestions? If you happen to be running PHP, and you happen to be able to integrate this well, there are settings in php.ini called "use_trans_sid" which tell PHP to put its session id into the URL. PHP will automatically cram the session id into every link, every form, every src= and so on, if you turn that on. You may also want to look at the notes from this talk: http://jasonrexilius.com/GloballyDistributedWebCluster.php in which Jason Rexilius describes a method of storing the session data itself in the cookie in section 5) I think he's got a more article-oriented version online somewhere, but it didn't turn up in my quick Google. -- Some people have a "gift" link here. Know what I want? I want you to buy a CD from some starving artist. http://cdbaby.com/browse/from/lynch Yeah, I get a buck. So? --------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See for more info. To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org " from the digest: users-digest-unsubscribe@httpd.apache.org For additional commands, e-mail: users-help@httpd.apache.org