Hi all, Im developing an application that runs on multiple physical boxes (and thus different hostnames). Both of the boxes will run the same application (connecting to a shared postgres server). What I need is when someone logs in on box 1 (ie. box1.domain.com), and then traverses via a link to box 2 (ie. box2.domain.com), he or she will not have to login again. How can I do this? Thanks Petr -- 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
On Mar 21, 2:44 am, Petr Janda <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> Hi all, > Im developing an application that runs on multiple physical boxes (and > thus different hostnames). Both of the boxes will run the same > application (connecting to a shared postgres server). What I need is > when someone logs in on box 1 (ie. box1.domain.com), and then traverses > via a link to box 2 (ie. box2.domain.com), he or she will not have to > login again.That''s what the :session_domain key for the session options is for. Maybe there''s more to your setup that you haven''t described but if it is exactly the same code running on the various boxes and you just happen to have multiple ones because 1 couldn''t service your load then you don''t need this at all. You can stick a load balancer in front, users always go to www.domain.com and the load balancer spreads the requests out to your various machines (the load balancer can be anything from specialised hardware to software like haproxy, nginx or apache). Fred> > How can I do this? > > Thanks > Petr > -- > 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
No its not because one box cannot handle the load, but because certain activities the users would be doing are best done on a separate high-performance box(other than the normal web-server). -- 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Anyway, session_domain works as expected. Thanks! Petr -- 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---