MuNieK Posted November 17, 2008 Share Posted November 17, 2008 Hello.After few days of brainstorm and frustration we have finally find out what was causing our shop at prestashop engine making problems with loging in. 90% of thos eproblems are related with our beloved internet explorer which is blocking presta shop's cookies.Im finally happy and would like to share the fix recipe with you so you wont have to spend hours on searching for it.The fix is pretty simple. You have to put the p3p code at the begining of the .php sites. There are many generators and tags, each is "telling" ie what your site is doing and what is not. But since our deadline for design and seting up shot ended few days ago we had no time to determinate which tag tells what (from legal point of view), we were only determinated to make this babe rolling and we putted this code: <?php header('P3P: CP="IDC DSP COR CURa ADMa OUR IND PHY ONL COM STA"'); I hope it will help you as it helped us regardsMuniek Link to comment Share on other sites More sharing options...
Damien Metzger Posted November 17, 2008 Share Posted November 17, 2008 Thanks MuNiek!At least be sure that we'll check it out as soon as possible Link to comment Share on other sites More sharing options...
MuNieK Posted November 18, 2008 Author Share Posted November 18, 2008 well we have implemented it into index.php, authentication.php and my-account.php and it fixed login problems... but now we cant get rid of IE's blocking of order.php cookies :SEven implementing this code doesnt change it. Oo Do you have any known issue with this?edit:Anyway i have been searching for the solvation and found this: How Can I Prevent IE6 from Blocking My Cookies?To prevent IE6 from blocking cookies on your site, you need to make sure that all of the cookies that are being set in a third-party context have P3P compact policies associated with them, and that those compact policies are considered satisfactory by IE6. If the third-party cookies are being set by another company, you may need to ask them to P3P-enable and set P3P compact policies. Any host that sets a P3P compact policy must also have a corresponding full P3P policy. Users can change their IE6 settings so that cookies will be blocked under other conditions as well; however, placing satisfactory compact policies on third-party cookies will prevent most IE6 cookie blocking. The question is how do i make sure that prestashop's cookies have p3p compact pocilies? Ooedit:ok fixed. Just added this code to every single .php file and now order.php is not blocked anymore Link to comment Share on other sites More sharing options...
mhu100 Posted February 2, 2010 Share Posted February 2, 2010 well we have implemented it into index.php, authentication.php and my-account.php and it fixed login problems... but now we cant get rid of IE's blocking of order.php cookies :SEven implementing this code doesnt change it. Oo Do you have any known issue with this?edit:Anyway i have been searching for the solvation and found this: How Can I Prevent IE6 from Blocking My Cookies?To prevent IE6 from blocking cookies on your site, you need to make sure that all of the cookies that are being set in a third-party context have P3P compact policies associated with them, and that those compact policies are considered satisfactory by IE6. If the third-party cookies are being set by another company, you may need to ask them to P3P-enable and set P3P compact policies. Any host that sets a P3P compact policy must also have a corresponding full P3P policy. Users can change their IE6 settings so that cookies will be blocked under other conditions as well; however, placing satisfactory compact policies on third-party cookies will prevent most IE6 cookie blocking. The question is how do i make sure that prestashop's cookies have p3p compact pocilies? Ooedit:ok fixed. Just added this code to every single .php file and now order.php is not blocked anymore THANKS!!!!! This works like a charm. I was almost desperate! Link to comment Share on other sites More sharing options...
Neil1234 Posted May 17, 2010 Share Posted May 17, 2010 Hi,I have added the extra code the php files suggested but I am still having customers losing items added to their carts.Do you have to add the extra code to all the php filesIs that all of the over 1,000 files?Does anyone have any ideas?Thanks, Link to comment Share on other sites More sharing options...
mhu100 Posted May 17, 2010 Share Posted May 17, 2010 Hi,I have added the extra code the php files suggested but I am still having customers losing items added to their carts.Do you have to add the extra code to all the php filesIs that all of the over 1,000 files?Does anyone have any ideas?Thanks, I have put the code in all the php files in the root of my shop. That works OK for me and my customers. Maybe you forgot one or more files? Link to comment Share on other sites More sharing options...
Neil1234 Posted May 17, 2010 Share Posted May 17, 2010 Hi mhu100,Thanks, but I have added the code the all the files in the root of my store (checked and re-checked).And still having the same problem, but it does only seem to be some customers some of the timeI have tried this on 1v2v0v8, 1v2v5v0 and the new 1v3v0v7 and i get the same problem on both versions,I have re-installed my store so many times over the last couple of weeks i've lost couple.The strange thing is, I've only had this problem for a couple of weeks,The same store working for a few months, no updated or anything were done and then all of a sudden nothing stays in the cart.Any ideas, as I am now getting to the stage of changing from Prestashop which I really don't want to do as over a year up until now it's been really good with no problems. Please can anyone help, Link to comment Share on other sites More sharing options...
mhu100 Posted May 17, 2010 Share Posted May 17, 2010 Hi mhu100,Thanks, but I have added the code the all the files in the root of my store (checked and re-checked).And still having the same problem, but it does only seem to be some customers some of the timeI have tried this on 1v2v0v8, 1v2v5v0 and the new 1v3v0v7 and i get the same problem on both versions,I have re-installed my store so many times over the last couple of weeks i've lost couple.The strange thing is, I've only had this problem for a couple of weeks,The same store working for a few months, no updated or anything were done and then all of a sudden nothing stays in the cart.Any ideas, as I am now getting to the stage of changing from Prestashop which I really don't want to do as over a year up until now it's been really good with no problems. Please can anyone help, I have no answer at this time. Sorry. When I do I let you know. Link to comment Share on other sites More sharing options...
Timpet Posted February 12, 2011 Share Posted February 12, 2011 Adding it only to the header is just a ½ solution, i found http://www.alphaworks.ibm.com/tech/p3peditor to make a complet set of rules for privacy.Then i used the w3c valditator to validate them afterwards. Link to comment Share on other sites More sharing options...
trevorgilligan Posted November 29, 2016 Share Posted November 29, 2016 so just to clarify putting this : header("P3P", "CP=\"This is not a P3P policy! See http://4u.ie/shop for more info.\""); in front of all root files will work? i use iframe , cookies not working , iframe has to be used for multistore, Trev Link to comment Share on other sites More sharing options...
Recommended Posts