PHP Bugs  
php.net | support | documentation | report a bug | advanced search | search howto | statistics | login

go to bug id or search bugs for  

Bug #16412 Using session_start() repeatedly (on different pages) causes HTTP 500
Submitted:3 Apr 2002 12:04pm UTC Modified: 13 Jul 2002 1:00am UTC
From:rob at garfoot dot com Assigned to:
Status:No Feedback Category:Session related
Version:4.1.2 OS:Windows XP
Votes:1 Avg. Score:5.0 ± 0.0 Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%) Same OS:0 (0.0%)
View/Vote Add Comment Developer Edit Submission

Welcome! If you don't have a SVN 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.
SVN Username: SVN Password:
Quick Fix:
Status: Assign to:
Category:
Summary:
From: rob at garfoot dot com
New email:
Version: OS:
New/Additional Comment:

[3 Apr 2002 12:04pm UTC] rob at garfoot dot 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
[4 Apr 2002 10:29am UTC] rob at garfoot dot com
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.
[7 Jun 2002 10:57am UTC] k.schroeder@php.net
Please try to recover your bug with PHP 4.2.1.
[13 Jul 2002 1:00am UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a month, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
[7 Jul 2006 12:03pm UTC] tamagog02000 at yahoo dot com
hi my problem is when using session_start() i get this warning Warning:
session_start() [function.session-start]: Cannot send session cookie -
headers already sent by (output started at C:\Program
Files\xampp\htdocs\Copy of finalproject\signin.php:2) in C:\Program
Files\xampp\htdocs\Copy of finalproject\signin.php on line 4

Warning: session_start() [function.session-start]: Cannot send session
cache limiter - headers already sent (output started at C:\Program
Files\xampp\htdocs\Copy of finalproject\signin.php:2) in C:\Program
Files\xampp\htdocs\Copy of finalproject\signin.php on line 4
1 
 inspite that am using ob_start() before session_start()what should i
do?
[21 Sep 2007 10:55pm UTC] ghdg at tfuyd dot jhog
http://www.meta-fx.com

RSS feed | show source 

PHP Copyright © 2001-2009 The PHP Group
All rights reserved.
Last updated: Sat Nov 21 10:30:49 2009 UTC