When working with my app with subdomain support (with plugin account_location), I have following issue: From the main domain, user can register (with information about subdomain). After successful register, the app will log user in and forward to corresponding subdomain. The problem here is that after redirecting, all session data get lost (i think because the subdomain is considered another website from the main domain), so I can''t retain info about newly created data. Is there any solution to this problem? I think that if I use db for session store, I can get session data from db, but I want a generic solution. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
I''m not sure about RoR, but I expect the following applies... certainly when using PHP or JSP there is a scope higher than session scope and that is application scope - application scope variables are accessible by any website regardless of sessions as long as the browser remains open. ----- Gareth Howells, CertHE (Dunelm), BCS CEO, GForce Industries garethATgforce-industriesDOTcoDOTuk 07862725134 GForce Industries 86, Warwick Avenue, Quorn, Loughborough, LEICS. LE12 8HE ----- Original Message ----- From: "bhanugsm-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org" <bhanugsm-/E1597aS9LQAvxtiuMwx3w@public.gmane.org> To: "Ruby on Rails: Talk" <rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> Sent: Sunday, February 10, 2008 4:24 PM Subject: [Rails] subdomain query> > When working with my app with subdomain support (with plugin > account_location), I have following issue: From the main domain, user > can register (with information about subdomain). After successful > register, the app will log user in and forward to corresponding > subdomain. The problem here is that after redirecting, all session > data get lost (i think because the subdomain is considered another > website from the main domain), so I can''t retain info about newly > created data. > Is there any solution to this problem? I think that if I use db for > session store, I can get session data from db, but I want a generic > solution. > >--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
bhanugsm-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
2008-Feb-26 09:29 UTC
Re: subdomain query
hi can anyone tell me this thing On Feb 10, 9:51 pm, "Gareth Howells" <subscripti...@gforce- industries.co.uk> wrote:> I''m not sure about RoR, but I expect the following applies... certainly when > using PHP or JSP there is a scope higher than session scope and that is > application scope - application scope variables are accessible by any > website regardless of sessions as long as the browser remains open. > > ----- > > Gareth Howells, CertHE (Dunelm), BCS > CEO, GForce Industries > > garethATgforce-industriesDOTcoDOTuk > 07862725134 > > GForce Industries > 86, Warwick Avenue, > Quorn, > Loughborough, > LEICS. > LE12 8HE > > ----- Original Message ----- > From: "bhanu...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org" <bhanu...-/E1597aS9LQAvxtiuMwx3w@public.gmane.org> > To: "Ruby on Rails: Talk" <rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> > Sent: Sunday, February 10, 2008 4:24 PM > Subject: [Rails] subdomain query > > > When working with my app with subdomain support (with plugin > > account_location), I have following issue: From the main domain, user > > can register (with information about subdomain). After successful > > register, the app will log user in and forward to corresponding > > subdomain. The problem here is that after redirecting, all session > > data get lost (i think because the subdomain is considered another > > website from the main domain), so I can''t retain info about newly > > created data. > > Is there any solution to this problem? I think that if I use db for > > session store, I can get session data from db, but I want a generic > > solution.--~--~---------~--~----~------------~-------~--~----~ 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 26 Feb 2008, at 09:29, bhanugsm-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org wrote:> > hi can anyone tell me this thingYou need to ensure that the session cookie is set to for foo.com, not xyz.foo.com You can probably change this with ActionController::CgiRequest::DEFAULT_SESSION_OPTIONS, but i don''t have the details to hand. Fred> > > On Feb 10, 9:51 pm, "Gareth Howells" <subscripti...@gforce- > industries.co.uk> wrote: >> I''m not sure about RoR, but I expect the following applies... >> certainly when >> using PHP or JSP there is a scope higher than session scope and >> that is >> application scope - application scope variables are accessible by any >> website regardless of sessions as long as the browser remains open. >> >> ----- >> >> Gareth Howells, CertHE (Dunelm), BCS >> CEO, GForce Industries >> >> garethATgforce-industriesDOTcoDOTuk >> 07862725134 >> >> GForce Industries >> 86, Warwick Avenue, >> Quorn, >> Loughborough, >> LEICS. >> LE12 8HE >> >> ----- Original Message ----- >> From: "bhanu...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org" <bhanu...-/E1597aS9LQAvxtiuMwx3w@public.gmane.org> >> To: "Ruby on Rails: Talk" <rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> >> Sent: Sunday, February 10, 2008 4:24 PM >> Subject: [Rails] subdomain query >> >>> When working with my app with subdomain support (with plugin >>> account_location), I have following issue: From the main domain, >>> user >>> can register (with information about subdomain). After successful >>> register, the app will log user in and forward to corresponding >>> subdomain. The problem here is that after redirecting, all session >>> data get lost (i think because the subdomain is considered another >>> website from the main domain), so I can''t retain info about newly >>> created data. >>> Is there any solution to this problem? I think that if I use db for >>> session store, I can get session data from db, but I want a generic >>> solution. > --~--~---------~--~----~------------~-------~--~----~ > 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://gro--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---