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, "/");