Nick Jones
Nick Jones

Reputation: 85

Problem with setting cookie in IE

I am having a problem setting a cookie through PHP on IE. It works for any other browser but for IE. I have noticed that if i make the call for setting a cookie on IE and then making a request for it (same or next page) it doesn't work but if i land on the page and then refresh it, the cookie is set.

The way i am doing it is:

setcookie('ckone', $ck_one,$session_expiration_time,'/');

Any thoughts?

Upvotes: 1

Views: 365

Answers (1)

Sascha Galley
Sascha Galley

Reputation: 16091

I also had an IE issue (concerning iFrame) a while ago and was able to get rid of it with the following line of code:

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

Upvotes: 1

Related Questions