CookieRestrictions 1.0.0.8

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

Install-Package CookieRestrictions -Version 1.0.0.8
dotnet add package CookieRestrictions --version 1.0.0.8
<PackageReference Include="CookieRestrictions" Version="1.0.0.8" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add CookieRestrictions --version 1.0.0.8
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Release Notes

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

Dependencies

This package has no dependencies.

Version History

Version Downloads Last updated
1.0.0.8 662 6/3/2014
1.0.0.7 429 1/15/2014
1.0.0.6 378 1/14/2014
1.0.0.4 563 1/28/2013
1.0.0.3 570 11/23/2012
1.0.0.2 819 2/24/2012
1.0.0 666 1/12/2012