Re: Sessions in JRuby Rack
- From: Nick Sieger <nicksieger@gmail.com>
- To: talk@jruby-rack.kenai.com
- Cc: issues@jruby-rack.kenai.com
- Subject: Re: Sessions in JRuby Rack
- Date: Tue, 2 Mar 2010 07:48:49 -0600
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=NJuFwkPpL/m1bIIsxxmDwn9jTvHolg9wy/kSOv1rkLh32HaNnzRzSFwVwtYFwD8yoH LexTHpgbv4UtHcCARkl3VVbE35B7glG3Qb6UPD30Kqdo6W1D25XOi6pYW8iPu4P9br24 fOiEJlCND+O/nNEqXpXXTv6T0HP9eoNB014oI=
Can you write some code that dumps session configuration out to the
log file at startup? Rails 2 should use the cookie store by default,
unless you specify the Java Servlet Store.
See if you can gather any other differences between your Vista dev box
and your production instance.
/Nick
On Tue, Mar 2, 2010 at 3:05 AM, Kyle Wilcox <wilcox.kyle@gmail.com> wrote:
> I am having the same issue on Windows Server 2003.
>
> Jruby-1.40
> juby-rack-0.9.6
> rails-2.3.5
>
> Does not matter how I run... glassfish, WAR via Tomcat, webbrick, mongrel.
>
> Sessions are lost on each request. Funny thing is, it works on
> Windows Vista (my development box), but not on Server 2003 (production
> in EC2) with the same setup.
>
> I can only think it is a jruby-rack issue.... been messing around
> trying to get it working to no avail.
>
>
> -------------------------
> * From: "gaja s.r" <gaja26387@gmail.com>
> * To: issues@jruby-rack.kenai.com, talk@jruby-rack.kenai.com
> * Subject: Sessions in JRuby Rack
> * Date: Tue, 16 Feb 2010 18:27:46 +0530
>
> Hi,
> I am porting an Rails application to JRuby. I am using
> JRuby-rack-1.4 and Rails 1.2.6 and i have trouble in session handling.
> I was using the default database manger (PStore) for sessions and
> thing were working fine. But when moved to JRuby for each request new
> session_id is assigned.
> On minimul debugging i found that JRuby-rack overrides it with
> JavaServletStore and also turns of the cookie (in jruby/rack/rails.rb)
> which is guess causes the problem. Did i miss something? How is it
> possible to persist session across requests?
>
> Thanks in advance,
> -Gajendran
>
| Kyle Wilcox | 03/02/2010 | |
|
Re: Sessions in JRuby Rack |
Nick Sieger | 03/02/2010 |
| Kyle Wilcox | 03/02/2010 |





