Re: session_start problems with FireFox on Mac

From: Date: Sun, 13 Jan 2008 00:47:11 +0000
Subject: Re: session_start problems with FireFox on Mac
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-267160@lists.php.net to get a copy of this message
Terry Calie wrote:
Hey... thanks for the replies. I installed the headers feature that Richard suggested and found that no headers were output. I started to transfer my php to another site to see if the problem replicated and I wasn't able to recreate the problem. It turns out that I "require" a file before the session_start that had one stupid character of whitespace at the end of it. When I transferred the php to recreate the problem, I replaced the "require" call with the actual code - eliminating the whitespace at the end of the file, so the problem didn't replicate. It took me a long time to figure out that was the problem. What a killer!
You may use ob_clean() just before the header() to get rid of the extra whitespaces. -- Regards, Anup Shukla

« previous php.general (#267160) next »