dotnet add package CookieRestrictions --version                
NuGet\Install-Package CookieRestrictions -Version                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="CookieRestrictions" Version="" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add CookieRestrictions --version                
#r "nuget: CookieRestrictions,"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install CookieRestrictions as a Cake Addin
#addin nuget:?package=CookieRestrictions&version=

// Install CookieRestrictions as a Cake Tool
#tool nuget:?package=CookieRestrictions&version=                

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

Product Compatible and additional computed target framework versions.
.NET Framework net20 is compatible.  net35 was computed.  net40 was computed.  net403 was computed.  net45 was computed.  net451 was computed.  net452 was computed.  net46 was computed.  net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated 1,685 6/3/2014 1,224 1/15/2014 1,169 1/14/2014 1,372 1/28/2013 1,533 11/23/2012 1,676 2/24/2012
1.0.0 1,551 1/12/2012

Version - Silent Handling now based on error number instead of exception message
Version - Silent Handling of not being able to change cookies in request due to Flushed request content
Version - Fixed Cookies from httpOnly true to false, and a typo in js
Version - Implementet so the configuration can be overwriten
Version - Implemented surpress cookie warning.
Version - Fixed allow cookie validation in util class.
Version - Added a util class
Version - added the CookieRestrictionsContext.HostnameIsValid property so its easier to check if the javascript should be included