CookieRestrictions 1.0.0.8
dotnet add package CookieRestrictions --version 1.0.0.8
NuGet\Install-Package CookieRestrictions -Version 1.0.0.8
<PackageReference Include="CookieRestrictions" Version="1.0.0.8" />
paket add CookieRestrictions --version 1.0.0.8
#r "nuget: CookieRestrictions, 1.0.0.8"
// Install CookieRestrictions as a Cake Addin #addin nuget:?package=CookieRestrictions&version=1.0.0.8 // Install CookieRestrictions as a Cake Tool #tool nuget:?package=CookieRestrictions&version=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
Product | Versions 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. |
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 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