|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2007-06-29 11:29 UTC] sniper@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Dec 03 15:00:01 2025 UTC |
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