The P3PCookieBundle adds support for cookie storage in iFrames for Internet Explorer. It solves an Issue, where cookies (for example for session storage) don't work for applications inside iFrames.
This version of the bundle requires Symfony 2.1+.
Installation only requires two steps:
- Download P3PCookieBundle using composer
- Enable the Bundle
Add P3PCookieBundle to your composer.json
{
"require": {
"pulpmedia/p3pcookiebundle": "~1.0@dev"
}
}
Now tell composer to download the bundle by running the command:
$ php composer.phar update pulpmedia/p3pcookiebundle
Composer will install the bundle to your project's vendor/pulpmedia
directory.
Enable the bundle in the kernel:
<?php
// app/AppKernel.php
public function registerBundles()
{
$bundles = array(
// ...
new Pulpmedia\P3PCookieBundle\PulpmediaP3PCookieBundle(),
);
}
Your response headers will have the required P3P settings to enable cookie storage inside iFrames for Internet Explorer
This bundle is under the MIT license.