Re: session_start problems with FireFox on Mac

From: Date: Sat, 12 Jan 2008 19:20:18 +0000
Subject: Re: session_start problems with FireFox on Mac
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-267156@lists.php.net to get a copy of this message
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! To illustrate my php goes like this: index.php ========= <?php code code require "index2.php" code ?> index2.php ======== <?php code code code ?> <whitespace character> The <whitespace character> is actually just an extra newline "\n" at the end of the file. So that gets output to the browser before the headers and apparently doesn't lock up any browsers except FireFox on a Mac. Thanks for the help. Just your courtesy in responses got me thinking in a new direction. Terry Richard Lynch wrote:
Install Live HTTP Headers and see what headers are being sent. Then search for those headers and FireFox Mac issues online. On Fri, January 11, 2008 10:34 am, Terry Calie wrote:
Sorry if this is the wrong place to ask this question... if so please help me figure out where to ask it. I've asked on FireFox forums and was told it was a PHP problem and to ask the developers of PHP. I have a PHP website that freezes in Firefox on a Mac. Every other browser/operating system combination I have tested is fine. I've narrowed down the problem to having to do with "session_start", which is the session tracking mechanism for php. When I comment out session_start, the site works (but of course my site now becomes state-less). Again, the problem is ONLY on FireFox on a Mac. It works fine on FireFox on a PC. Any ideas as to what could be causing the problem with FireFox on Mac and not on PC? (Safari on Mac works fine) Thanks, Terry -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
    


« previous php.general (#267156) next »