From: "Fraser Campbell" <[EMAIL PROTECTED]> > On Monday 29 September 2003 15:33, Kevin Stone wrote: > > > > If all domains have access to the same database then there is absolutely > > nothing preventing you from using a Cookie. Have a normal login on > > Domain1.com. Once authenticated produce a random ID and store it in the > > database. Store the ID in a cookie then Redirect the client to the desired > > domain. The page the client is redirected to checks to see if the ID > > Ok. So then the client has a cookie set for www.domain1.com, when I redirect > him to www.domain2.com why would his browser send me the cookie? I think I'm > missing something ...
It wouldn't and you're not. :) Like someone else mentioned, use sessions or something like them. The key is you're passing a unique id around for each person that logs in. When they go to another site, this ID must go with them, so that means they can only get to the other sites through a link or a form where the ID is passed. If they simply type in the URL for the next domain, they will not be logged in because the ID is not getting passed. ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php