I ve been having some problems with setting and getting COOKIES. I have a page outside an iframe where i set a cookie and then redirect on to facebook, where i get the COOKIE previously set and store in a DB. This user path works fine, except that a user can arrive to the facebook page (tab) directly, where i need to set a cookie there if one is not set.
I know that in certain browsers a P3P policy should be present when setting a COOKIE so i use: header('P3P:CP="IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT"'); which does its job for IE, but i have noticed that the problem is not only IE related.
One possible problem might be that i set and try to get the COOKIE on the same page directly without refreshing the page after the COOKIE is set ??? Whould the iframe affect how COOKIES are set through PHP ?
Any thoughts?
Thanks in advance.
$_COOCIE['somename'] = ...
instead ofsetcookie
– k102