A domain Name page called B domain name php,php in the read and write cookies are empty, there is a way to solve it? Thank you!
http://www.test1.com/called with JS
http://www.test2.com/test.php
The read-write cookie function found in PHP does not work.
Setcookie ("TestCookie", $value, Time () +3600);
$phpcookies = $_cookie[' TestCookie ');
What's the problem, please?
Thank you!
Share to:
------Solution--------------------
Would you please enter $value to see if it is a null value?
------Solution--------------------
Reference:
you enter $value first to see is not a null value?
Is "output", typos ...
------Solution--------------------
Cookie value cannot be accessed across domains
------Solution--------------------
A cookie is bound to a domain name and can be passed as a parameter to a cookie.
------Solution--------------------
Browsers are prohibited from cross-domain.
------Solution--------------------
A.com The following cookie can only be accessed by a.com PHP below, B.Com is not accessible.
------Solution--------------------
Cross-domain parameters are best to pass parameters
------Solution--------------------
JS does not support cross-domain ...
------Solution--------------------
Reference:
The browser is prohibited from cross-domain.
Http://www.test2.com/test.php?XXXX=XXXXXX