CodeIgniter Forums
P3P Headers - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21)
+--- Thread: P3P Headers (/showthread.php?tid=34113)



P3P Headers - El Forum - 09-19-2010

[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


P3P Headers - El Forum - 02-17-2011

[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