All, I tried to take this to my host but they''ve deferred to me which means I''m deferring to the community. I''ve currently got an issue where my application is giving a user two distinct sessions/cookies - not a good thing. The first session is allocated when a user hits www.foo.com for the first time, however, if the user then hits foo.com (sans the www), my application issues this user a new session. This sounds like a hosting issue but they''ve indicated it''s in the app. Any pointers? Suggestions on where to start digging? Seems like the answer is to tail rails to issue cookies for *.foo.com and not per subdomain (www.foo.com)... TIA, Cory -- 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 -~----------~----~----~----~------~----~------~--~---
felipekk-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
2007-Dec-13 04:12 UTC
Re: Cookies/Session Management
Well, you can work around this issue by making your website work on www.foo.com and all other subdomains to redirect to your website. If you tell rails to use *.foo.com for your cookie (dunno how to do that), you are going to have problems if you decide to use a subdomain for something else, like a forum, that usually sets a cookie on its own. As it is, this is indeed an issue with you/app and not the web host. On Dec 12, 8:06 pm, Cory Wilkerson <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> All, > > I tried to take this to my host but they''ve deferred to me which means > I''m deferring to the community. > > I''ve currently got an issue where my application is giving a user two > distinct sessions/cookies - not a good thing. The first session is > allocated when a user hitswww.foo.comfor the first time, however, if > the user then hits foo.com (sans the www), my application issues this > user a new session. > > This sounds like a hosting issue but they''ve indicated it''s in the app. > Any pointers? Suggestions on where to start digging? Seems like the > answer is to tail rails to issue cookies for *.foo.com and not per > subdomain (www.foo.com)... > > TIA, > Cory > -- > 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
This should do the trick: http://wiki.rubyonrails.org/rails/pages/HowtoChangeSessionOptions -- 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 -~----------~----~----~----~------~----~------~--~---