Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/277.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php Firefox弹出窗口不会接收cookie_Php_Javascript_Html_Firefox_Popup - Fatal编程技术网

Php Firefox弹出窗口不会接收cookie

Php Firefox弹出窗口不会接收cookie,php,javascript,html,firefox,popup,Php,Javascript,Html,Firefox,Popup,我正在链接到另一个在窗口中打开的页面 以下是链接: <a href='#' onclick=\"window.open('linkadress.php here."','targetWindow','toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=no,width=200,height=200')\" /> Master是test.com/test/index.php 弹出窗口是test.com

我正在链接到另一个在窗口中打开的页面

以下是链接:

<a href='#' onclick=\"window.open('linkadress.php here."','targetWindow','toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=no,width=200,height=200')\" />
Master是test.com/test/index.php 弹出窗口是test.com/test/pages/popup.php


更新我发现它在IE中工作得很好,但在Firefox中却不行。。有人知道我能做些什么来解决这个问题吗?

看起来您正在某个子目录中设置cookie,而不是域的根目录 这将解决您的问题:

setcookie("cookiename", $value, time()+600, "/");
setcookie("cookiename", $value, time()+600, "/");