bramski-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
2007-Feb-12 20:27 UTC
Session_id generation different for subdomains
Hi! So, I''ve got a bunch of different subdomains for our site... foobar.myhost.com bar.myhost.com foo.myhost.com However, I would like for RAILS to have consistent session ids for each of these subdomains as they all point at the same rails appliation (i change behavior by adding some request headers at the apache end which handles directing them to the right rails application). Does anybody know if there''s a patch needed, or a configuration to do to make rails not pay attention to the prefix of the domain name requested? --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
bramski-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org wrote:> Hi! So, I''ve got a bunch of different subdomains for our site... > > foobar.myhost.com > bar.myhost.com > foo.myhost.com > > However, I would like for RAILS to have consistent session ids for > each of these subdomains as they all point at the same rails > appliation (i change behavior by adding some request headers at the > apache end which handles directing them to the right rails > application). > > Does anybody know if there''s a patch needed, or a configuration to do > to make rails not pay attention to the prefix of the domain name > requested?It may be more of a browser limitation than a rails limitation. Will the browser send a cookie that was set by foo.bar.com to fab.bar.com? -- 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 -~----------~----~----~----~------~----~------~--~---
bramski-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
2007-Feb-12 22:20 UTC
Re: Session_id generation different for subdomains
Excellent point... However, I''m in control of the redirection to the new site, so I could just reproduce the cookie on the redirect. Or could I set a cookie which is good for all *.myhost.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 -~----------~----~----~----~------~----~------~--~---
bramski-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
2007-Feb-12 22:51 UTC
Re: Session_id generation different for subdomains
Yes, some quick digging, and you CAN set a cookie which acts over all subdomains. https://trac.cakephp.org/ticket/830 Looks like this was done in cakephp.... was it done in Rails? --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
bramski-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
2007-Feb-12 23:29 UTC
Re: Session_id generation different for subdomains
I guess I''ll answer my own question. But for anybody who''s wondering. http://threebit.net/mail-archive/rails/msg00708.html On Feb 12, 2:51 pm, "bram...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org" <bram...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Yes, some quick digging, and you CAN set a cookie which acts over all > subdomains. > > https://trac.cakephp.org/ticket/830 > > Looks like this was done in cakephp.... was it done in Rails?--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---