README.md

Rack-Policy

This is Rack middleware that makes your app compliant with the 'EU ePrivacy Directive'
whereby a user needs to provide implied consent before any data can be stored on his
machine.

Installation

Add this line to your application's Gemfile:

gem 'rack-policy'

And then execute:

$ bundle

Or install it yourself as:

$ gem install rack-policy

Usage

By default when the Rack application is loaded no cookies will be set(provided no session cookies already exist), and any existing session cookies will be destroyed. Throughout the request cycle cookies now won't be set until the user has given explicit consent. This can be controlled by setting consent token