Fixing IE7 dropping PHP Sessions
After banging my head against the wall, and spending the better part of today trying to find out why my session variables were not being transferred from page to page in IE7, it worked fine in Firefox and Safari. The sessions not working were rendering MySpace OpenSocial App in Iframe and was dead to anyone using IE7. But the good news is i got it fixed (thanks to google), and the fix is so simple it’s ridiculous. Before you start your session, you need to declare a privacy policy in your header.
header('P3P: CP="CAO PSA OUR"'); ob_start(); session_start();
Other things learned during MySpace development.
- Everything works just fine in FireFox, IE7 is the only culprit :p
- If you try to send any OpenSocial request through MySpace IFPC library in IE7 before the page is fully loaded, IE7 will give alert error saying Object Not Found. To fix this wait for page load and then make request.
- request.AdjustHeight() will not work in IE7 if Symfony’s development (frontend controller) environment is enabled.
- I’ve already forgot a lot of things that I learned, will try to remember them again and bookmark them.
Similar Posts
- Symfony Admin Generator Calling Actions with Custom Parameters
- Download Music Legally & Free
- “Crap, I’ve been doing it wrong.”
- One Year of Unsuccessful Blogging
- Fixing Ignition Timing of my Sunny 120Y (DIY)


B@D on February 11th, 2009 at 5:03 PM
One More thing.
Any IE version is a total crap. IE should be forbidden. I hope it will just disappear some day. It just give headaches to any web developer.