getbusy
02-04-2005, 06:35 PM
Hello,
I want to use an user-database for multiple websites + the users shouldn't have to login on every site they visit (logged in on one domain means logged in on all domains).
So.. I have http://myfirstdomain.com/myuserid.php (that file reads the cookie for myfirstdomain.com and echos the user id; so myuserid.php only contains "0" or "5" or "244" or ..). Only myfirstdomain.com can read the cookie.
On my seconddomain.com I want to run http://www.myfirstdomain.com/myuserid.php, the problem is that the enduser should open this domain and not the server (so it can't be done with fopen because the cookie wouldn't get read)
Is there any php command or javascript that could make this work?
This doesn't work: include(), fopen()
I think I might need the following commands,
ob_start();
$header = ob_get_contents();
ob_end_clean();
Hope someone can help me!. Thank you
I want to use an user-database for multiple websites + the users shouldn't have to login on every site they visit (logged in on one domain means logged in on all domains).
So.. I have http://myfirstdomain.com/myuserid.php (that file reads the cookie for myfirstdomain.com and echos the user id; so myuserid.php only contains "0" or "5" or "244" or ..). Only myfirstdomain.com can read the cookie.
On my seconddomain.com I want to run http://www.myfirstdomain.com/myuserid.php, the problem is that the enduser should open this domain and not the server (so it can't be done with fopen because the cookie wouldn't get read)
Is there any php command or javascript that could make this work?
This doesn't work: include(), fopen()
I think I might need the following commands,
ob_start();
$header = ob_get_contents();
ob_end_clean();
Hope someone can help me!. Thank you
