我在不同的主机上托管了两个网站, xyz.net63.net& abc.comli.com 我想传输从db获取的数据并存储在xyz.net63.net的php页面的会话中 到abc.comli.com的php页面
php页面发送数据(在xyz.net63.net)
<?php session_start();
$_SESSION['customer_name'] = "test"; //data to pass
$link = "http://abc.comli.com"; //data pass to
//link for call update page
echo "<br/><a href=\"$link/create_db.php\">Click here</a> to update.
?>
获取数据的php页面(在abc.comli.com上)
<?php session_start();
$data = $_SESSION['customer_name']; //DATA APPEARS NOTHING HERE
?>