DotNet.Cookies
1.0.0
dotnet add package DotNet.Cookies --version 1.0.0
NuGet\Install-Package DotNet.Cookies -Version 1.0.0
<PackageReference Include="DotNet.Cookies" Version="1.0.0" />
paket add DotNet.Cookies --version 1.0.0
#r "nuget: DotNet.Cookies, 1.0.0"
// Install DotNet.Cookies as a Cake Addin #addin nuget:?package=DotNet.Cookies&version=1.0.0 // Install DotNet.Cookies as a Cake Tool #tool nuget:?package=DotNet.Cookies&version=1.0.0
This client library allow to manage cookies: Get, Set, Remove.
Easy to use:
CookiesHelper.SetCookie("keyValue", "exampleValue", DateTime.Now.AddDays(30));
var value = CookiesHelper.GetCookieValue("keyValue");
Available basic methods:
public static string GetCookieValue(string key)
public static void SetCookie(string key, string value, DateTime expires)
Available methods:
public static string GetCookieValue(string key)
public static Dictionary<string, string> GetAllCookiesKeyAndValue()
public static HttpCookie GetCookie(string key)
public static Dictionary<string, HttpCookie> GetAllCookiesDictionary()
public static List<HttpCookie> GetAllCookies()
public static void SetCookie(string key, string value, DateTime expires)
public static void RemoveCookie(string key)
public static void RemoveAllCookies()
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET Framework | net45 is compatible. net451 is compatible. net452 is compatible. net46 is compatible. net461 is compatible. 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 | Downloads | Last updated |
---|---|---|
1.0.0 | 7,042 | 7/11/2017 |