php - Iframe 中的 session 在 Firefox 中有效但在 Internet Explorer 中无效

标签 php internet-explorer firefox session iframe

我试图让一个表单在 Internet Explorer 中工作。我看到当我在 Firefox 中提交此表单时,我可以启动一个 session 并根据该 session 将我的网络浏览器发送到正确的页面。然而,在 Internet Explorer 中,当我调试 $_SESSION 时,我检索到一个空数组,这意味着在 Internet Explorer 中, session 没有在我的第二页上启动。

这是我用来在第二页上打印 session 的代码:

session_start();
 //unset($_SESSION['bp_email']);
 include("includes/_dbconnect.php");
 print_r($_SESSION);
 die();

最佳答案

请阅读此 link ,一定能帮到你。

关于php - Iframe 中的 session 在 Firefox 中有效但在 Internet Explorer 中无效,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2463248/

相关文章:

php - MYSQL 查询错误 WHERE id = $id

php - 如何找到最低唯一出价者并显示该最低唯一出价者的用户名

css - 将现有 CSS 布局转换为 IE4 友好的快速方法?

javascript - 如何防止 firefox 中的 javascript 关闭窗口/选项卡?

php - bcrypt() 和 crypt() 方法有什么区别?

php - 向 MAMP 添加 GMP PHP 扩展

jquery - IE png 与 jquery 和 css 问题

javascript - 当托管在硬盘驱动器上时,图像不会在浏览器中呈现 : I. E. Firefox、Safari、在 Chrome 中加载

firefox - 如何在网页上运行任何内联脚本之前运行用户脚本?

css - 显示 :flex is not working