[Rails] Re: Sharing sessions across rails apps 2.3.2
That could well be part of it, but I'm afraid I'm not sure I follow you. How would I go about doing that? (I didn't need to with my old approach.) Cheers, Doug. -- Posted via http://www.ruby-forum.com/. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To post to this group, send email to rubyonrails-talk@googlegroups.com To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~--~~~~--~~--~--~---
[Rails] Re: Sharing sessions across rails apps 2.3.2
On May 13, 7:56 pm, Doug Livesey rails-mailing-l...@andreas-s.net wrote: That could well be part of it, but I'm afraid I'm not sure I follow you. How would I go about doing that? (I didn't need to with my old approach.) Ah, we may not be talking about the same thing. Are these apps on different subdomains (eg app1.example.com, app2.example.com), different domains, or on the same domain (example.com/app1 example.com/app2) ? Fred Cheers, Doug. -- Posted viahttp://www.ruby-forum.com/. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To post to this group, send email to rubyonrails-talk@googlegroups.com To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~--~~~~--~~--~--~---
[Rails] Re: Sharing sessions across rails apps 2.3.2
On May 13, 8:56 pm, Doug Livesey rails-mailing-l...@andreas-s.net wrote: They're on the same machine, although I may want to move them at some point. that doesn't quite answer the question - even though they are on the same machine any of the 3 scenarios I mentioned could be in effect. What it boils down to in the end is cookies: there is a cookie that tells rails which row from the sessions table to use and if both apps aren't getting the same value out of this cookie then although the sessions are backed by the same table they will appear as different users. Fred -- Posted viahttp://www.ruby-forum.com/. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To post to this group, send email to rubyonrails-talk@googlegroups.com To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~--~~~~--~~--~--~---
[Rails] Re: Sharing sessions across rails apps 2.3.2
I had something very similar on one of my applications with 2.3.2 the action_controller.session has changed and its now just :domain and :key : config.action_controller.session = { :domain = '.me.com', :key = '_my_session', :secret = 'long string' } This shares the me.com cookie with *.me.com so www.me.com or secure.me.com or me.com... This goes in your environments/product.rb or development.rb files... --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To post to this group, send email to rubyonrails-talk@googlegroups.com To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~--~~~~--~~--~--~---
[Rails] Re: Sharing sessions across rails apps 2.3.2
Ah, I see, sorry -- well, they'll be on the same machine, but that is on a local network (these are internal apps), and they are accessed by names like app1, app2, with the local server's DNS resolving them to the server address, and passenger and phusion taking over from there. That's the idea, anyway -- I had the proof-of-concept working, but needed to upgrade the apps to 2.3.2 before deploying them. You can probably tell this isn't my area of expertise! thanks for your continued advice. Doug. -- Posted via http://www.ruby-forum.com/. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To post to this group, send email to rubyonrails-talk@googlegroups.com To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~--~~~~--~~--~--~---
[Rails] Re: Sharing sessions across rails apps 2.3.2
So if I have (locally) my apps all called things like app1.local and app2.local, then I could set the domain to .local, which would generate a local cookie that would be available to both apps, enabling them to share a session? Sorry if I'm labouring the point -- I've had my head in this all day am correspondingly slow tonight! thankyou, Doug. -- Posted via http://www.ruby-forum.com/. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To post to this group, send email to rubyonrails-talk@googlegroups.com To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~--~~~~--~~--~--~---