Re: [phplib] Cookie_domain not working? From: M. Brian Akins (bakins <email protected>)
Date: 06/27/00

All the sites use the same database. Infact all the session and auth stuff is
handled by the same phpcode. The multiple sites are actually pointed to the
same directory in Apache, and different pages are included based on what site
was reqested. If I look at my cookies file, the cookie domain is being set as
"1.site.com" or "2.site.com", but if I call setcookie myself and set the domain
to ".site.com" it works.

On Tue, 27 Jun 2000, toby cabot wrote:
> "M. Brian Akins" wrote:
> >
> > But if I authenticate on 1.site.com and then go to 2.site.com I must login. Any
> > one got ideas?
>
> I've got lots! One that's relevant to this topic is that all of the
> sites need to be using the same database for their session table. The
> cookie is merely a key into the database; the database stores what login
> state a session/user is in.
>
> Toby
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: phplib-unsubscribe <email protected>
> For additional commands, e-mail: phplib-help <email protected>

-- 
M. Brian Akins
Senior Development Engineer

--------------------------------------------------------------------- To unsubscribe, e-mail: phplib-unsubscribe <email protected> For additional commands, e-mail: phplib-help <email protected>