I''m having an issue with ARsessions... I have a rails app AND a merb app both under the same domain... I have redirects working for this to be seamless... however, the session started on merb is different than the session started in the rails app... like so.. http://pastie.caboo.se/private/r1ar42qiaekrqjdt6y Any ideas why? The only difference I see, but dunno where to change this, is that the rails app uses utc datetimes... the merb app doesn''t.. one can see that on the attributes. Thanks! Cheers, -rjs- -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/merb-devel/attachments/20061227/33aac22e/attachment.html
Since I''m on a role in talking to myself... here it goes... I ''fixed'' it... the rails app was sending the session_id as cookies[''_session_id''] and merb was trying to get it from cookies[:session_id].... sooo. I hacked it for now but I''ll have to figure out where to change that name later... I set cookies[:session_id] = cookies[''_session_id''] under MERB_GEM_ROOT/lib/merb/session/merb_ar_session.rb It works now. But any ideas or suggestions are welcome. :-) cheers, -rjs- On 12/27/06, Rogelio J. Samour <rogelio.samour at gmail.com> wrote:> > I''m having an issue with ARsessions... I have a rails app AND a merb app > both under the same domain... I have redirects working for this to be > seamless... however, the session started on merb is different than the > session started in the rails app... like so.. > http://pastie.caboo.se/private/r1ar42qiaekrqjdt6y > > Any ideas why? > > The only difference I see, but dunno where to change this, is that the > rails app uses utc datetimes... the merb app doesn''t.. one can see that on > the attributes. > > Thanks! > > Cheers, > > > -rjs--------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/merb-devel/attachments/20061227/3c108e88/attachment.html
On Dec 27, 2006, at 12:39 PM, Rogelio J. Samour wrote:> Since I''m on a role in talking to myself... here it goes... > > I ''fixed'' it... the rails app was sending the session_id as cookies > [''_session_id''] and merb was trying to get it from cookies > [:session_id].... > > sooo. I hacked it for now but I''ll have to figure out where to > change that name later... > I set cookies[:session_id] = cookies[''_session_id''] under > MERB_GEM_ROOT/lib/merb/session/merb_ar_session.rb > > It works now. But any ideas or suggestions are welcome. :-) > > cheers, > > -rjs- > > > On 12/27/06, Rogelio J. Samour < rogelio.samour at gmail.com> > wrote:I''m having an issue with ARsessions... I have a rails app AND > a merb app both under the same domain... I have redirects working > for this to be seamless... however, the session started on merb is > different than the session started in the rails app... like so.. > http://pastie.caboo.se/private/r1ar42qiaekrqjdt6y > > Any ideas why? > > The only difference I see, but dunno where to change this, is that > the rails app uses utc datetimes... the merb app doesn''t.. one can > see that on the attributes. > > Thanks! > > Cheers, > > > -rjs- >Hey Man- I guess I should change merb to use _session_id so its easy to use the rails cookie. One way around it without changing any code is to make the redirect to merb have ?session_id=dkhfkjdfkadjfjkadfh appended to the query string. That will fix it for now. I will change merb to use _session_id so this is more seamless though. Cheers- -- Ezra Zygmuntowicz -- Lead Rails Evangelist -- ez at engineyard.com -- Engine Yard, Serious Rails Hosting -- (866) 518-YARD (9273)
Actually. I did the following: vi config/environment.rb at the very bottom, outside of the Rails::Initializer block, I wrote: ActionController::Base.session_options[:session_key] = ''session_id'' And that works with merb now. I was thinking of allowing merb to be able to change the session_key as well through the merb_init.rb file. cheers, -rjs- On 12/27/06, Ezra Zygmuntowicz <ez at engineyard.com> wrote:> > > On Dec 27, 2006, at 12:39 PM, Rogelio J. Samour wrote: > > > Since I''m on a role in talking to myself... here it goes... > > > > I ''fixed'' it... the rails app was sending the session_id as cookies > > [''_session_id''] and merb was trying to get it from cookies > > [:session_id].... > > > > sooo. I hacked it for now but I''ll have to figure out where to > > change that name later... > > I set cookies[:session_id] = cookies[''_session_id''] under > > MERB_GEM_ROOT/lib/merb/session/merb_ar_session.rb > > > > It works now. But any ideas or suggestions are welcome. :-) > > > > cheers, > > > > -rjs- > > > > > > On 12/27/06, Rogelio J. Samour < rogelio.samour at gmail.com> > > wrote:I''m having an issue with ARsessions... I have a rails app AND > > a merb app both under the same domain... I have redirects working > > for this to be seamless... however, the session started on merb is > > different than the session started in the rails app... like so.. > > http://pastie.caboo.se/private/r1ar42qiaekrqjdt6y > > > > Any ideas why? > > > > The only difference I see, but dunno where to change this, is that > > the rails app uses utc datetimes... the merb app doesn''t.. one can > > see that on the attributes. > > > > Thanks! > > > > Cheers, > > > > > > -rjs- > > > > > Hey Man- > > > I guess I should change merb to use _session_id so its easy to use > the rails cookie. One way around it without changing any code is to > make the redirect to merb have ?session_id=dkhfkjdfkadjfjkadfh > appended to the query string. That will fix it for now. I will change > merb to use _session_id so this is more seamless though. > > Cheers- > > -- Ezra Zygmuntowicz > -- Lead Rails Evangelist > -- ez at engineyard.com > -- Engine Yard, Serious Rails Hosting > -- (866) 518-YARD (9273) > > >-------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/merb-devel/attachments/20061227/483e9d85/attachment.html