Jump to content

[SOLVED] Empty cart in Internet Explorer 7 & 8 but IE 6, Firefox, Safari works fine


Recommended Posts

seems like the cookie is not set correctly,
The shop works outside the iframe, when then go back to the site with the shop in the iframe
it works correctly

What's wrong with the cookie setting? why doesn't this work when inside the iframe in ie 7 en 8
all other browsers (including IE 6) it works perfectly

Link to comment
Share on other sites

I Found the solution when googling on cookie + Iframe

The problem lies with a W3C standard called Platform for Privacy Preferences or P3P for short. You can read all about the boring stuff via the link or else just install the P3P Compact Policy header below. This will allow Internet Explorer to accept your third-party cookie. You will need to send the header on every page that sets a cookie.

PHP:

header('P3P:CP="IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT"');

In which part should I paste this?

Link to comment
Share on other sites

Changed the above code in the header.php p3p policies section, but still not working...darn


*EDIT*
Also paste the code in the following files:
index.php
cart.php
authentication.php
order.php
product.php
And then it works perfectly!!
Woo..finally solved the problem...

Link to comment
Share on other sites

  • 1 year later...

Hi,

If the shop is called via an iframe the cookies are handled like 3rd party cookies.
IE 7/8 only accepts first party cookies as feault setting. The settings have to be changed to accept 3rd party cookies too.
On FF3.5/6 the 3rd party cookies are already set.

You can also avoid this by avoiding the iframe.

Rgds
hp

Link to comment
Share on other sites

×
×
  • Create New...