php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #41850 can not get the session by http get
Submitted: 2007-06-29 04:21 UTC Modified: 2007-06-29 11:29 UTC
From: timwhoung at 126 dot com Assigned:
Status: Not a bug Package: Session related
PHP Version: 5.2.3 OS: win,linux
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: timwhoung at 126 dot com
New email:
PHP Version: OS:

 

 [2007-06-29 04:21 UTC] 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

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2007-06-29 11:29 UTC] sniper@php.net
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.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Jun 18 07:01:31 2024 UTC