AUTH - Subdomains and multiple domains on the same IP
| From: | M C | Date: | Fri, 03 Jul 2009 16:53:15 +0000 |
| Subject: | AUTH - Subdomains and multiple domains on the same IP | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-29917@lists.php.net to get a copy of this message | ||
Hi again,
in the meanwhile I have a found a workaround for the issue I posted in
February (message here below);
where I probably forgot to clarify that all subdomains where pointing to the
same server and IP address.
Instead of maintaining the same authentication, a new authentication is
automatically started once in the destination subdomain.
Now I am hitting another wall, where, instead of different subdomains, I am
trying to use different domains
(for example, login in a page under www.foo.org page and then be redirected
to a different page under www.foo.net)
But I found a problem at the very root: when directly logging in under the
new domain, let's say www.foo.net/login.php, checkAuth() method simply
returns FALSE; where www.foo.org/login.php or us.foo.org/login.php just
works fine.
Any idea or hint? Thank you in advance,
Mario
2009/2/23 Mario Callisto <mario.callisto@gmail.com>
Hi all,
I am using AUTH and would like to maintain the authentication of the
user through different subdomains (for example, login in a page under
www.foo.org page and then be redirected to a different page under
us.foo.org).
In my standard implementation this is not working; if I understood
correctly the "authchallenge" cookie is set with HOST "www.foo.org" and
not to ".foo.org", where it would be available on all subdomains of
foo.org
I haven't found in the documentation any related setting or proposed
workaround. Anyone can point me to the best and most correct solution
for this?
Thank you in advance.
Mario