PHP 会话 ID 不同 [英] PHP session id's differ

查看:43
本文介绍了PHP 会话 ID 不同的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用的是 php 5.2.8

i am using php 5.2.8

我有 index.html,它从 IFRAME 加载 LOAD.PHP.

i have index.html, which loads LOAD.PHP from IFRAME.

iframe src="load.php".....

iframe src="load.php".....

我打印了 load.php 的会话 ID.

i printed out load.php's session id.

然后我运行另一个 test.php,并打印出它的会话 ID.

then i ran another test.php, and printed out it's session id.

php 会话 ID 不同.

因此,我无法传递任何会话变量....

therefore, i cannot pass any session variables....

这里发生了什么?这个问题以前没有发生过,今天突然开始发生了....但是这个问题仍然存在......它让我发疯!

what is happening here ? this problem did not happen before, suddenly today it started happening.... however this problem still exists....its driving me nuts !

session.saved_pa​​th 是一样的..../var/php5, cookie 路径是一样的...

session.saved_path is same for both.... /var/php5, cookie path is same...

推荐答案

http://www.example.com 将具有与 http://example.com

这篇关于PHP 会话 ID 不同的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆