#41850 [NEW]: can not get the session by http get

From: Date: Fri, 29 Jun 2007 04:21:23 +0000
Subject: #41850 [NEW]: can not get the session by http get
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-114433@lists.php.net to get a copy of this message
From: timwhoung at 126 dot com Operating system: win,linux PHP version: 5.2.3 PHP Bug Type: Session related Bug description: can not get the session by http get 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 bug report at http://bugs.php.net/?id=41850&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=41850&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=41850&r=trysnapshot52 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=41850&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=41850&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=41850&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=41850&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=41850&r=needscript Try newer version: http://bugs.php.net/fix.php?id=41850&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=41850&r=support Expected behavior: http://bugs.php.net/fix.php?id=41850&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=41850&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=41850&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=41850&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=41850&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=41850&r=dst IIS Stability: http://bugs.php.net/fix.php?id=41850&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=41850&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=41850&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=41850&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=41850&r=mysqlcfg

« previous php.bugs (#114433) next »