You must be logged in to do that (read scm)
Re: Sessions in JRuby Rack
- From: Kyle Wilcox <wilcox.kyle@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 21:04:48 +0400
- 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=cqcWeUQZrDtu37ys5OYHUOpodEtQIxSVy6aNpgC/VNdPz1z43YhEU5UJTxFyYeLAPn 5AG23iuMlgvgjKoMZu5wlGQV7YebTA5b9UWeyu551ZqqyiD1e8oLUYBwid6xS1qrKcI0 8tj1iV896vAS2aS9Zd3NNgHwkL+oUmC8Ifvss=
Ah! Sorry to have bothered... it a combination of Rails 2.3.x lazy
session loading and obsolete plugins I refuse to give up on.
On the plus side, everything is working great, thanks for the response.
On Tue, Mar 2, 2010 at 5:48 PM, Nick Sieger <nicksieger@gmail.com> wrote:
> 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 | |
| Nick Sieger | 03/02/2010 | |
|
Re: Sessions in JRuby Rack |
Kyle Wilcox | 03/02/2010 |





