Bug #16412 Updated: Using session_start() repeatedly (on different pages) causes HTTP 500

From: Date: Thu, 04 Apr 2002 15:29:38 +0000
Subject: Bug #16412 Updated: Using session_start() repeatedly (on different pages) causes HTTP 500
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-4047@lists.php.net to get a copy of this message
ID: 16412 Updated by: rob@garfoot.com Reported By: rob@garfoot.com Status: Open Bug Type: Session related Operating System: Windows XP PHP Version: 4.1.2 New Comment: Ok this is wierd but I've noticed that once I started getting the HTTP 500 errors I couldnt get even a simple script eg <? echo "Test"; ?> to work. I tried checking the "Check that file exists" on the application extension mapping in IIS and it all seems to work now. Odd. Previous Comments: ------------------------------------------------------------------------ [2002-04-03 12:04:53] rob@garfoot.com 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 this bug report at http://bugs.php.net/?id=16412&edit=1

« previous php.bugs (#4047) next »