Home > Backend Development > PHP Tutorial > A域名页面调用B域名下的php,php里读写cookies为空,有办法解决吗?多谢

A域名页面调用B域名下的php,php里读写cookies为空,有办法解决吗?多谢

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-13 12:32:32
Original
871 people have browsed it

A域名页面调用B域名下的php,php里读写cookies为空,有办法解决吗?谢谢!
http://www.test1.com/用js调用
http://www.test2.com/test.php

发现写在php里面的读写cookies函数都不起作用。
setcookie("TestCookie",$value,time()+3600);
$phpcookies = $_COOKIE['TestCookie']; 
  

请问是什么问题?
谢谢!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Issues
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template