Re: Sessions in JRuby Rack

  • From: Kyle Wilcox <wilcox.kyle@gmail.com>
  • To: issues@jruby-rack.kenai.com, talk@jruby-rack.kenai.com
  • Subject: Re: Sessions in JRuby Rack
  • Date: Tue, 2 Mar 2010 13:05:38 +0400
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=w757sLhTl1fgBTc5e1oZoQ6c2ajO4En/9/o8yW36c/wjceI51O89MTodZSxSmWO9B7 Y2+CxEce09SFqK0yqIVUoByQxPnDimO+Vo3tJfhiQac/TLqA9vUSFNkxOxkTWZs7UpSd f5LHSPifE9gsiFxLYpbp8sSElcNj79vifaDPw=

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


Re: Sessions in JRuby Rack

Kyle Wilcox 03/02/2010

Re: Sessions in JRuby Rack

Nick Sieger 03/02/2010

Re: Sessions in JRuby Rack

Kyle Wilcox 03/02/2010
  • Mysql
  • Glassfish
  • Jruby
  • Rails
  • Nblogo
Terms of Use; Privacy Policy;
© 2010, Oracle Corporation and/or its affiliates
(revision 20120127.ac94057)
 
 
Close
loading
Please Confirm
Close