pulpmedia/p3pcookiebundle

Solves Cookie Storage issues in iFrames for Internet Explorer in Symfony2

Installs: 17 978

Dependents: 0

Suggesters: 0

Security: 0

Stars: 2

Watchers: 4

Forks: 2

Open Issues: 1

Type:symfony-bundle

dev-master / 1.0.x-dev 2014-04-24 08:17 UTC

This package is auto-updated.

Last update: 2024-10-20 23:26:14 UTC


README

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.

Prerequisites

This version of the bundle requires Symfony 2.1+.

Installation

Installation only requires two steps:

  1. Download P3PCookieBundle using composer
  2. Enable the Bundle

Step 1: Download P3PCookieBundle

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.

Step 2: Enable the bundle

Enable the bundle in the kernel:

<?php
// app/AppKernel.php

public function registerBundles()
{
    $bundles = array(
        // ...
        new Pulpmedia\P3PCookieBundle\PulpmediaP3PCookieBundle(),
    );
}

Step 3: Done

Your response headers will have the required P3P settings to enable cookie storage inside iFrames for Internet Explorer

License

This bundle is under the MIT license.