Info
Version: | 2024.12.14.838 |
Author(s): | Walter Verhoeven, Stijn Snellinx |
Last Update: | Saturday, December 14, 2024 |
.NET Fiddle: | Create the first Fiddle |
Project Url: | https://www.asp-waf.com/ |
NuGet Url: | https://www.nuget.org/packages/Walter.Web.FireWall.CookieStore |
Install
Install-Package Walter.Web.FireWall.CookieStore
dotnet add package Walter.Web.FireWall.CookieStore
paket add Walter.Web.FireWall.CookieStore
Walter.Web.FireWall.CookieStore Download (Unzip the "nupkg" after downloading)
Dependencies
net5.0
- Walter.BOM(>= 2020.12.27.6)
- Walter.DataTools.MsSql(>= 2020.12.27.6)
- Walter.Web.Firewall(>= 2020.12.27.6)
- Walter(>= 2020.12.27.1)
- Walter.BOM(>= 2020.12.27.6)
- Walter.DataTools.MsSql(>= 2020.12.27.6)
- Walter.Web.Firewall(>= 2020.12.27.6)
- Walter(>= 2020.12.27.1)
- Walter.BOM(>= 2020.12.27.6)
- Walter.DataTools.MsSql(>= 2020.12.27.6)
- Walter.Web.Firewall(>= 2020.12.27.6)
- Walter(>= 2020.12.27.1)
Tags
You can read and write these cookies using the User in the page request object that is injected in all your controllers.
To integrate the Cookie Store database use the UseDBCookieStore extension method as shown bellow
services.AddFireWall(FireWallTrial.License, FireWallTrial.DomainKey
, domainName: new Uri("https://www.your-domain.com", UriKind.Absolute)
, options =>
{
//your firewall settings
}).UseDBCookieStore();
You can see how to use it using this online documentation here:
https://firewallapi.asp-waf.com/?topic=html/Overload-Walter.Web.FireWall.IUserIdentity.WriteCookie.htm
Read about reading such a cookie is documented here:
https://firewallapi.asp-waf.com/?topic=html/M-Walter.Web.FireWall.IUserIdentity.TryReadCookie.htm.