#28856 [NEW]: session_start() causes apache process to hang
| From: | pubnelle at megaphone dot ch | Date: | Sun, 20 Jun 2004 17:57:24 +0000 |
| Subject: | #28856 [NEW]: session_start() causes apache process to hang | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-61124@lists.php.net to get a copy of this message | ||
From: pubnelle at megaphone dot ch
Operating system: Mac OS X server 10.3.4
PHP version: 4.3.6
PHP Bug Type: Session related
Bug description: session_start() causes apache process to hang
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 bug report at http://bugs.php.net/?id=28856&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=28856&r=trysnapshot4
Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=28856&r=trysnapshot5
Fixed in CVS: http://bugs.php.net/fix.php?id=28856&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=28856&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=28856&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=28856&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=28856&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=28856&r=support
Expected behavior: http://bugs.php.net/fix.php?id=28856&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=28856&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=28856&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=28856&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=28856&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=28856&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=28856&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=28856&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=28856&r=float