Erwin
2012-Nov-07 17:46 UTC
is there a way to get access to a cookie stored a root site in a session set at subdomain level
being at root level http://mydomain.com, I stored a cookie cookie[:login] I can see the cookie in my browser site: mydomain.cm login _myapp_session upon redirection, to url => http://test.mydomain.com , I would like to access this cookie, cookie[;login], but as I maintain sessions at subdomain level, I have site: test_domain.com _myapp_session how can I access the cookie[:login] ? thanks for any clue ... -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/eIuzuzG7fD8J. For more options, visit https://groups.google.com/groups/opt_out.
Erwin
2012-Nov-07 18:22 UTC
Re: is there a way to get access to a cookie stored a root site in a session set at subdomain level
I tried to use the :domain cookies[:login] = { :value => 1, :domain =>"test.mydomain.com", :expires => 1.hour.from_now } but no way cookies is not set for test should I rather use ? cookies[:login] = { :value => 1, :domain =>".mydomain.com", :expires => 1.hour.from_now } Le mercredi 7 novembre 2012 18:46:31 UTC+1, Erwin a écrit :> > being at root level http://mydomain.com, I stored a cookie > cookie[:login] > I can see the cookie in my browser > site: mydomain.cm > login > _myapp_session > > > upon redirection, to url => http://test.mydomain.com , > I would like to access this cookie, cookie[;login], but as I maintain > sessions at subdomain level, I have > site: test_domain.com > _myapp_session > > how can I access the cookie[:login] ? > > thanks for any clue ... >-- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/gbmustsSTr4J. For more options, visit https://groups.google.com/groups/opt_out.