#41850 [Opn->Bgs]: can not get the session by http get
| From: | sniper@php.net | Date: | Fri, 29 Jun 2007 11:29:20 +0000 |
| Subject: | #41850 [Opn->Bgs]: can not get the session by http get | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-114441@lists.php.net to get a copy of this message | ||
ID: 41850
Updated by: sniper@php.net
Reported By: timwhoung at 126 dot com
-Status: Open
+Status: Bogus
Bug Type: Session related
Operating System: win,linux
PHP Version: 5.2.3
New Comment:
Sorry, but your problem does not imply a bug in PHP itself. For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system
is not the
appropriate forum for asking support questions. Due to the volume
of reports we can not explain in detail here why your report is not
a bug. The support channels will be able to provide an explanation
for you.
Thank you for your interest in PHP.
Previous Comments:
------------------------------------------------------------------------
[2007-06-29 04:21:23] timwhoung at 126 dot com
Description:
------------
I can not get the session by HTTP GET whitch is set by another script,
the 2 scripts are in the same domain...
Reproduce code:
---------------
there are 2 scripts,one is a.php,another is b.php
at b.php,the code is:
#b.php
########
//session_id('1234');
session_id($_COOKIE['PHPSESSID']);
session_start();
$_SESSION['abc'] = 'test';
########
and the a.php is:
#a.php
#########
//session_id('1234');
session_start();
fetch("b.php");
print_r($_SESSION);
function fetch($url){
//at this,i try file_get_contents,curl(send cookie SID),and
PEAR::HTTP_Request,and all can not work
}
Expected result:
----------------
I want it will display the value of $_SESSION at a.php whitch set in
b.php
Actual result:
--------------
timeout,blank
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=41850&edit=1