Sessions across subdomains

Hi Folks.

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?

I’ve done a google for this, but so far come up blank.

Thanks in advance.

On Nov 27, 2007 12:35 PM, Douglas S.
[email protected] 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 D.
http://destiney.com/