我有一个名为 Index 的页面和一个用于检查会话的页面聊天编写用于打印的代码echo session->user;
此代码在 chat.php 中工作,但在 index.php 中包含 chat.phpecho session->user;
不起作用
e:g
//index.php
<?php
<iframe src="./chat.php"></iframe>
enter code here
?>
//chat.php
<?php
include_once ('./session.php');
echo $session->user;
?>
chat.php
打印用户但index.php
不打印
问题出在哪里?请帮忙
虽然这个问题是在 Firefox 中而不是在 IE 问题中