Return-Path: X-Original-To: apmail-couchdb-user-archive@www.apache.org Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 6474F104B1 for ; Thu, 16 Jan 2014 21:42:52 +0000 (UTC) Received: (qmail 68965 invoked by uid 500); 16 Jan 2014 21:42:50 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 68882 invoked by uid 500); 16 Jan 2014 21:42:50 -0000 Mailing-List: contact user-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@couchdb.apache.org Delivered-To: mailing list user@couchdb.apache.org Received: (qmail 68874 invoked by uid 99); 16 Jan 2014 21:42:50 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 16 Jan 2014 21:42:50 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of jens@couchbase.com designates 206.225.164.30 as permitted sender) Received: from [206.225.164.30] (HELO EXHUB020-3.exch020.serverdata.net) (206.225.164.30) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 16 Jan 2014 21:42:46 +0000 Received: from EXVMBX020-1.exch020.serverdata.net ([169.254.4.179]) by EXHUB020-3.exch020.serverdata.net ([206.225.164.30]) with mapi; Thu, 16 Jan 2014 13:42:23 -0800 From: Jens Alfke To: "user@couchdb.apache.org" Date: Thu, 16 Jan 2014 13:42:22 -0800 Subject: Re: Keep several couchdb sessions authenticated Thread-Topic: Keep several couchdb sessions authenticated Thread-Index: Ac8TA9eTlzNMeI3ASHiir5XFAWg/ZA== Message-ID: References: In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Virus-Checked: Checked by ClamAV on apache.org On Jan 16, 2014, at 8:37 AM, Daniel Gonzalez wrote: > I guess couchdb is using a cookie for the session without keeping > information about the endpoint, so it gets overwritten. It's not possible, apparently, to have port-specific cookies for the same h= ost: http://stackoverflow.com/questions/1612177/are-http-cookies-port-specific So if you connect to two CouchDB servers at the same hostname, the auth coo= kies they set are going to overwrite each other. > Is there a workaround for this, so that I do not need to re-authenticate = so often? Don't configure the tunnels to be on the same hostname? =97Jens=