RE: [PHP] PHP 4 Sessions
| From: | Sascha Schumann | Date: | Thu, 31 Aug 2000 20:38:33 +0000 |
| Subject: | RE: [PHP] PHP 4 Sessions | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-14683@lists.php.net to get a copy of this message | ||
On Thu, 31 Aug 2000, Boget, Chris wrote:
> > > So only relative URLs will be appended? So if I have 3 sites on
> > > my server each part of the same instance of apache, I could not
> > > have php automagically append that session id to urls/links to
> > > pages on the other sites for them to use?
> > Where is the point of distributing one site over three
> > different domains?
>
> Maybe I said the wrong thing, but the intent would be one single
> login for the 3 secured domains. Since I cannot use basic auth
> (since that works on both host and realm) to allow the user to log
> in once at the portal and pass that info along to the other domains,
> I figured I could have the user log in at the portal, set up a session
> (with session ID) and have the other 3 sites check for the session
> ID and use it for authentication accordingly.
> Am I misunderstanding something?
Nope, that would work. I just don't see why you cannot make
that auth page simply available on all virtual hosts. I.e.
you could simply include() the code, use symlinks or map some
common code into all domains by using Apache's Alias command.
- Sascha