On Nov 27, 2007 12:35 PM, Douglas Shearer
<rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org>
wrote:> I have an application that is accessed from a domain, and a subdomain
> of the same domain dependent on scope.
>
> example.com
> subdomain.example.com
>
> How do I ensure that a session remains valid (stays logged in) when the
> user passes between these?
You have to change the cookie domain:
http://wiki.rubyonrails.com/rails/pages/HowtoChangeSessionOptions
Scroll to the bottom.
--
Greg Donald
http://destiney.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
-~----------~----~----~----~------~----~------~--~---