ID: 16412 Comment by: ghdg at tfuyd dot jhog Reported By: rob at garfoot dot com Status: No Feedback Bug Type: Session related Operating System: Windows XP PHP Version: 4.1.2 New Comment:
http://www.meta-fx.com Previous Comments: ------------------------------------------------------------------------ [2006-07-07 12:03:22] 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? ------------------------------------------------------------------------ [2002-07-13 01:00:06] 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". ------------------------------------------------------------------------ [2002-06-07 10:57:23] [EMAIL PROTECTED] Please try to recover your bug with PHP 4.2.1. ------------------------------------------------------------------------ [2002-04-04 10:29:38] 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. ------------------------------------------------------------------------ [2002-04-03 12:04:53] 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 ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=16412&edit=1