Re: AUTH - Subdomains and multiple domains on the same IP
| From: | M C | Date: | Sat, 04 Jul 2009 11:52:42 +0000 |
| Subject: | Re: AUTH - Subdomains and multiple domains on the same IP | ||
| References: | 1 2 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-29920@lists.php.net to get a copy of this message | ||
Hi Christian,
thank you for yr reply.
I see your point, even if I don't have 100% clear all the implications,
because I am not sure how exactly Auth (standard mode, without advanced
security features) handles cookies.
For switching from one domain to the other, my idea was:
* terminate the session under www.foo.org
* pass code (through pages and users DB) and time stamp (through users DB)
* if (in a very short time) code is found, user is identified: create new
session under www.foo.net
But as I said, it seems problems are occurring earlier than that, I cannot
even login when I am already browsing under www.foo.net (not attempting to
switch).
I'll do some more tests to check if I am missing something...
Best,
Mario
2009/7/4 Christian Weiske <cweiske@cweiske.de>
> Hello Mario,
>
>
> > 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.
> Cookies are not shared across domains. You may share them across one
> domain (so they work for multiple subdomains), but not across multiple
> domains.
>
> --
> Regards/Mit freundlichen Grüßen
> Christian Weiske
>
> -= Geeking around in the name of science since 1982 =-
>