php会话中的一些vars在同一页面丢失了

时间:2014-02-28 10:57:08

标签: php session

会话数据在同一页面中丢失。代码如下:

var_dump($_SESSION); // $_SESSION['uid'] has value of "2", and there are many other values; $uid = $_SESSION['uid']; //$_SESSION['uid'] will be missing at this line! var_dump($_SESSION); // $_SESSION will lost some values, but not all values; 价值变化只有两行,我根本没有改变;

我虽然这可能是php的错误。真的吗? 有没有人遇到过这个问题?

我的php版本是5.5.6。

0 个答案:

没有答案