From mboxrd@z Thu Jan 1 00:00:00 1970 Delivered-To: chneukirchen@gmail.com Received: by 10.229.248.130 with SMTP id mg2cs55149qcb; Mon, 12 Dec 2011 14:02:12 -0800 (PST) Return-Path: Received-SPF: pass (google.com: domain of rack-devel+bncCOCkpKnzHBDf85n3BBoEpDC2PA@googlegroups.com designates 10.216.131.37 as permitted sender) client-ip=10.216.131.37; Authentication-Results: mr.google.com; spf=pass (google.com: domain of rack-devel+bncCOCkpKnzHBDf85n3BBoEpDC2PA@googlegroups.com designates 10.216.131.37 as permitted sender) smtp.mail=rack-devel+bncCOCkpKnzHBDf85n3BBoEpDC2PA@googlegroups.com; dkim=pass header.i=rack-devel+bncCOCkpKnzHBDf85n3BBoEpDC2PA@googlegroups.com Received: from mr.google.com ([10.216.131.37]) by 10.216.131.37 with SMTP id l37mr1433086wei.45.1323727330273 (num_hops = 1); Mon, 12 Dec 2011 14:02:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=beta; h=x-beenthere:received-spf:mime-version:in-reply-to:references:from :date:message-id:subject:to:x-original-sender :x-original-authentication-results:reply-to:precedence:mailing-list :list-id:x-google-group-id:list-post:list-help:list-archive:sender :list-subscribe:list-unsubscribe:content-type; bh=oX1uQDcDuyS6uwE+5Au2Yyj9jljwKTRz1VjD9CL2jHM=; b=JfO0q4ABpzv/d6wkQsa29iv7tJqosEfQbZcXYC7xBcSfUGraysXyUtN4NJbPEqMVC5 eFPy05wQjM/8QZJ61f3zlofzr0mD4tCK71LQoUvtMJPTvbMgGWSh/TmdtA6uxSkX17/s k0RbtLjXRJvRwNVtUqXT1BQB6fX4ekQZpbOn8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=beta; h=x-beenthere:received-spf:mime-version:in-reply-to:references:from :date:message-id:subject:to:x-original-sender :x-original-authentication-results:reply-to:precedence:mailing-list :list-id:x-google-group-id:list-post:list-help:list-archive:sender :list-subscribe:list-unsubscribe:content-type; bh=oX1uQDcDuyS6uwE+5Au2Yyj9jljwKTRz1VjD9CL2jHM=; b=bYSO9Axp5KgR8cX57Uu1g1FQ973Yq42eGyV3dSPMZeHl/BQ6ZyWsqkv7r/3G8TjGwP EsD7xfpAZFABIe3W0l9Q== Received: by 10.216.131.37 with SMTP id l37mr451808wei.45.1323727327837; Mon, 12 Dec 2011 14:02:07 -0800 (PST) X-BeenThere: rack-devel@googlegroups.com Received: by 10.216.133.30 with SMTP id p30ls11499416wei.2.gmail; Mon, 12 Dec 2011 14:02:06 -0800 (PST) Received: by 10.180.95.3 with SMTP id dg3mr1905478wib.0.1323727326524; Mon, 12 Dec 2011 14:02:06 -0800 (PST) Received: by 10.180.95.3 with SMTP id dg3mr1905477wib.0.1323727326512; Mon, 12 Dec 2011 14:02:06 -0800 (PST) Received: from mail-ww0-f43.google.com (mail-ww0-f43.google.com [74.125.82.43]) by gmr-mx.google.com with ESMTPS id h26si19646868wbo.3.2011.12.12.14.02.06 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 12 Dec 2011 14:02:06 -0800 (PST) Received-SPF: pass (google.com: domain of jballanc@gmail.com designates 74.125.82.43 as permitted sender) client-ip=74.125.82.43; Received: by wgbds11 with SMTP id ds11so10459670wgb.24 for ; Mon, 12 Dec 2011 14:02:06 -0800 (PST) Received: by 10.227.206.82 with SMTP id ft18mr14976771wbb.21.1323727326348; Mon, 12 Dec 2011 14:02:06 -0800 (PST) MIME-Version: 1.0 Received: by 10.223.155.5 with HTTP; Mon, 12 Dec 2011 14:01:44 -0800 (PST) In-Reply-To: <383f50be-f002-467d-9bf1-90fb33ba49df@32g2000yqp.googlegroups.com> References: <383f50be-f002-467d-9bf1-90fb33ba49df@32g2000yqp.googlegroups.com> From: Joshua Ballanco Date: Mon, 12 Dec 2011 17:01:44 -0500 Message-ID: Subject: Re: multiple sessions on Sinatra use Rack::Session::Pool To: rack-devel@googlegroups.com X-Original-Sender: jballanc@gmail.com X-Original-Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of jballanc@gmail.com designates 74.125.82.43 as permitted sender) smtp.mail=jballanc@gmail.com; dkim=pass (test mode) header.i=@gmail.com Reply-To: rack-devel@googlegroups.com Precedence: list Mailing-list: list rack-devel@googlegroups.com; contact rack-devel+owners@googlegroups.com List-ID: X-Google-Group-Id: 486215384060 List-Post: , List-Help: , List-Archive: Sender: rack-devel@googlegroups.com List-Subscribe: , List-Unsubscribe: , Content-Type: multipart/alternative; boundary=00151744868611055904b3ec4915 --00151744868611055904b3ec4915 Content-Type: text/plain; charset=UTF-8 On Mon, Dec 12, 2011 at 3:40 PM, donhill wrote: > Hi. > > Sinata - 1.3.1 > Rack 1.3.5 > > I am experiencing what appears to be multiple sessions on a sinatra > app. I am using Rack::Session::Pool. This doesn't happen all the time > but the same customer has complained they keep getting an exception. > The flow is like this. > > I am using default settings for the Pool > > goto registration page > submit the page - I set a session value here > the user goes to a verify page and selects edit, when returning to the > registration page the session is empty > > I am dumping the session and cookies in my logs and it seems the > session cookies have changed values > > Has anyone experienced this tell me how to debug this? > Sounds something like this: http://www.kalzumeus.com/2011/11/17/i-saw-an-extremely-subtle-bug-today-and-i-just-have-to-tell-someone/ --00151744868611055904b3ec4915 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
On Mon, Dec 12, 2011 at 3:40 PM, donhill <dhill.novell@gmail= .com> wrote:
Hi.

Sinata - 1.3.1
Rack 1.3.5

I am experiencing what appears to be multiple sessions on a sinatra
app. I am using Rack::Session::Pool. This doesn't happen all the time but the same customer has complained they keep getting an exception.
The flow is like this.

I am using default settings for the Pool

goto registration page
submit the page - I set a session value here
the user goes to a verify page and selects edit, when returning to the
registration page the session is empty

I am dumping the session and cookies in my logs and it seems the
session cookies have changed values

Has anyone experienced this tell me how to debug this?

--00151744868611055904b3ec4915--