Can php cross-domain client COOKIES be obtained? after a few words are written, an error is reported.
Source: Internet
Author: User
Can I get client COOKIES online and other php cross-domain requests? if I write a few words, an error is reported. Help! I did a test. The results were everywhere and I couldn't see any errors at all. I asked for help. Http://www.test1.com/test.htm< ;! Can DOCTYPE online and other php cross-domain requests obtain client COOKIES? if I have written a few words, an error is reported, which is really hard to handle. Help!
I did a test. The results were everywhere and I couldn't see any errors at all. I asked for help.
Http://www.test1.com/test.htm
No error occurred when entering http://www.test2.com/test.php directly.
However, an error message is returned when you enter http://www.test1.com/test.htm.
First, I want to test it.
Setcookie ("TestCookie", $ value );
$ _ COOKIE ["TestCookie"];
The results cannot be run directly, and there is no way to seek help. Thank you! Share:
------ Solution --------------------
Document. write (" ");
The script Mark written in js must be cut off; otherwise it will be processed as the script mark, and of course it will go wrong.
------ Solution --------------------
You don't understand the nature of cookies!
------ Solution --------------------
Oh, wrong. it should be
Document. write (" ");
------ Solution --------------------
Cross-Origin jsonp
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.