CookieRestrictions NuGet Package

By adding the queryparameter allowCookies=on or allowCookies=off cookies will be disabled or enabled.
(cookis are enabled by setting an allowCookies cookie with the value "on")

- On the server side a http-module attached to the ResponseEnd event will clear all cookies if they are not enabled
- On the client side a javascript will wait 1200 milliseconds before clearing all cookies which may have been set via 3rd party javascript includes (such as google analytics)
- The HttpModule can be configured to work on a limited number of hostnames, just add them as a comma separated list in the app-setting "CookieRestrictions.ValidHostnames"
- The javascript is placed in \resources\js\CookieRestrictions.js and must be included manualy if needed.




Got any CookieRestrictions Question?





Info

Version: 1.0.0.8
Author(s): Ole Thorsager @ 1508.dk
Last Update: Tuesday, June 3, 2014
.NET Fiddle: Create the first Fiddle
Project Url: https://github.com/1508/CookieRestrictions
NuGet Url: https://www.nuget.org/packages/CookieRestrictions


Install
Install-Package CookieRestrictions
dotnet add package CookieRestrictions
paket add CookieRestrictions
CookieRestrictions Download (Unzip the "nupkg" after downloading)



Tags



STATS

must-have-score

.5

avg-downloads-per-day

1

days-since-last-release

3587