PHP Sessions & IE Problems?
Posted by: ByteTraveler
Posted on: 2006-02-22 07:54:00
Craziest problem I have ever seen, and I'm not getting anywhere with support - "We can't help you with browser related issues," but I'm really thinking this is a server configuration issue....
Have some basic placeholder pages up now (http://SandAndSky.com). Nothing to speak of so far, but some some pretty basic content, CSS, etc.
Site works perfectly *UNTIL* I add session_start() to the pages (first line).
At that point, the site continues to work fine in FireFox, Opera, and the latest IE 7 beta.
However, IE6 (and earlier) intermittantly begin displaying blank pages - Thinking they're "done," when in fact, there's nothing there, and view source shows nothing. No errors are reported.
To validate this, I set-up three basic copies of a test page, containing nothing but links to each-other.
Literally, not another line of code.
I can use IE 6, and click those links all day, and everthing behaves just fine.
As soon as I add session_start() to the top of each, IE6 starts intermittantly displaying some of the pages as blank (about 1-in-6, or 1-in-8 clicks).
No other change - Just session_start().
When such a blank page is displayed, reloading it in the browser will cause it to finally display properly.
Given that, I would dispute Dreamhost dismissing it as a "browser compatibility issue," no?
While they denied this being on their end, they did suggest that I add the following to .htacess, which did not appear to make any difference (it certainly didn't correct the problem)...
BrowserMatch "MSIE" brokenvary=1
BrowserMatch "Mozilla/4.[0-9]{2}" brokenvary=1 BrowserMatch "Opera" !brokenvary SetEnvIf brokenvary 1 force-no-vary
ExpiresActive On
ExpiresDefault A18000
ExpiresByType image/gif A2592000
ExpiresByType image/jpeg A2592000
ExpiresByType image/png A2592000
I'm really anxious to upload a far more elaborate site that I'm hoping to launch, but hesitate until this is resolved on the much simpler pages that are currently there, and this has literally been going back-and-forth with support for more than two weeks now.
Any ideas/suggestions/comments? There seems to be a lot on Google regarding problems with PHP session configuration at the server level causing probs like this with IE, but it all looks like server-related things I don't understand, and Dreamhost does not want to acknowledge that a server-side issue is possible.