日期:2014-05-17 浏览次数:20588 次
header('P3P: CP="CURa ADMa DEVa PSAo PSDo OUR BUS UNI PUR INT DEM STA PRE COM NAV OTC NOI DSP COR"'); if(isset($_GET['token'])) { setcookie('name', $_GET['token'] . ' ' . $_SERVER['HTTP_HOST']); echo "document.write('<br>js cookie:'+document.cookie+'<br>');"; }else { print_r($_COOKIE); $url = $_SERVER['HTTP_HOST'] == 'www.a.net' ? 'www.b.net' : 'www.a.net'; echo "<script src='http://$url/cookie.php?token=$_SERVER[HTTP_HOST]'></script>"; echo "<a href='http://$url/cookie.php'>test</a>"; }