From: [EMAIL PROTECTED] Operating system: Windows XP PHP version: 4.1.2 PHP Bug Type: Session related Bug description: Using session_start() repeatedly (on different pages) causes HTTP 500
I've had this with a more complex script but here is a cut down version. When I call session_start() in my script then link to another page that calls session_start() I eventually get HTTP 500 internal server error. This usually happens after 3 or 4 links. Its fine for the first few links usually. I'm running on the version of IIS that comes with XP Pro. I changed none of the php.ini setting during installation apart from the session var directory which is now f:\data\websites\sessions. The version of PHP is the binary of v4.1.2 for windows downloaded from php.net. I'm running as CGI. Here is an example of the code that exhibits the problem. If I keep clicking the "Click me" link it throws the error after 3-4 clicks most of the time. <? session_start(); ?> <html><body> <a href="<?=$_ENV['SCRIPT_NAME']?>">Click me</a> </body></html> Rob -- Edit bug report at http://bugs.php.net/?id=16412&edit=1 -- Fixed in CVS: http://bugs.php.net/fix.php?id=16412&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=16412&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=16412&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=16412&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=16412&r=support Expected behavior: http://bugs.php.net/fix.php?id=16412&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=16412&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=16412&r=submittedtwice