I''m working on an application that can be accessed from multiple domains. I want to maintain session data across these domains, such that if a user logs in at www.domain1.com, then moves to www.domain2.com, they will still be logged in with the same account. Is this possible in Rails? Could anyone point me towards a guide of how to achieve it? Many thanks, Adam --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Frederick Cheung
2009-Feb-27 17:10 UTC
Re: Maintaining session data across multiple domains
On 27 Feb 2009, at 14:24, Adam wrote:> > I''m working on an application that can be accessed from multiple > domains. I want to maintain session data across these domains, such > that if a user logs in at www.domain1.com, then moves to www.domain2.com > , > they will still be logged in with the same account. Is this possible > in Rails? Could anyone point me towards a guide of how to achieve it? >Well you will definitely need to move away from the cookie store. I imagine you could do something like redirect users with no session to blah.domain.com - this creates/looks up their session id. Then it redirects them back to the original domain along with a token telling that app what the session id of the user should be (so that this app can set the cookie saying what the session id is) Fred> Many thanks, > Adam > >--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---