Welcome Guest, Not a member yet? Register   Sign In
P3P Headers
#1

[eluser]yehiasalam[/eluser]
Hi,

My codeigniter application is trying to set cookies from inside an iFrame, and this is not working very well with IE8, so i need to set a special P3P header and output it to all my pages, i'm doing it like this:

Code:
class Bookmarklet extends Controller {

    function Bookmarklet()
    {
        parent::Controller();
        // Fix for Microsoft Internet Explorer P3P issues
        $this->output->set_header('P3P:CP="IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT');
    }

But still facing problems with IE8, will the above code add the P3P header to all outgoing pages from this controller. Thanks.

Thanks
Yehia
#2

[eluser]Sean Gates[/eluser]
The only place I have found this works is from within the index.php page, like so:

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

// ... rest of the index.php file




Theme © iAndrew 2016 - Forum software by © MyBB