Reputation: 1619
I've created a website in which user add his stuff and publish it. After publish my website generates a script which user should copy in his/her website. That code first make a cross-domain ajax request with jsonp. If everything works fine then an iframe gets created by my script and a session with that user's id is created and using that session value i fetch that user's data. This works completely fine in chrome
and firefox
. But not in IE
or Safari
.
I tried to print_r($_SESSION)
on the page. In chrome and firefox i can see the vaue of my session but in IE and safari it displays Array()
.
I cannot understand what is the problem. Please tell me what should i do.
My IE version is 11.0 and safari's version is 5.1.7 for windows.
Upvotes: 0
Views: 550
Reputation: 1519
You need to include this header in your PHP file which is used for cross-domain request.
header('P3P: CP="CAO PSA OUR"');
For further explanation, please check this link
Upvotes: 1