ID:               28856
 Updated by:       [EMAIL PROTECTED]
 Reported By:      pubnelle at megaphone dot ch
 Status:           Open
 Bug Type:         Session related
 Operating System: Mac OS X server 10.3.4
 PHP Version:      4.3.6
 New Comment:

Why are you using an http include to localhost?  That makes no sense. 
You have fast direct access to this file already.  Just include it
directly.  If you really need it to act like a completely separate
request (which you shouldn't) use a sub-request via virtual().


Previous Comments:
------------------------------------------------------------------------

[2004-06-20 19:57:22] pubnelle at megaphone dot ch

Description:
------------
session_start() causes apache process to hang when a call is made, via
http include, to another php script which stores the session files at
the same location. It create an http get error in the log files
eventually - I had a hard time to find the problem...
I upgraded the version of PHP from 4.3.1 built in OS X server to 4.3.6,
same problem. I upgraded Apache from 1.3.28 built in OS X server to
1.3.31, same problem.

We really need this, to link a shop to a content management system,
using the same session information to follow up the caddie stuff ... 

It helps to use the workaround of bug #22526, to close the session, but
is this really the only solution ? this is painfull ... 

Reproduce code:
---------------
<?
session_start();
$urltoinclude="http://localhost/index.php";;
include("$cmsurl/index.php?" . session_name() . "=" . session_id());
?>


Expected result:
----------------
The file included ;-) To reproduce it, you need to put this code in a
page that registers the sessions at the same location than the included
URL. 

Actual result:
--------------
White page hanging ... something appearing eventually (without the
include) after some time, exactly 2 minutes.



------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=28856&edit=1

Reply via email to