DotNet.Cookies

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 GetAllCookiesKeyAndValue()
public static HttpCookie GetCookie(string key)
public static Dictionary GetAllCookiesDictionary()
public static List GetAllCookies()
public static void SetCookie(string key, string value, DateTime expires)
public static void RemoveCookie(string key)
public static void RemoveAllCookies().

Info

Version: 1.0.0
Author(s): Tomasz Margacz
Last Update: Tuesday, July 11, 2017
.NET Fiddle: Create the first Fiddle
NuGet Url: https://www.nuget.org/packages/DotNet.Cookies


Install
Install-Package DotNet.Cookies
dotnet add package Z.EntityFramework.Plus.EF6
paket add DotNet.Cookies
DotNet.Cookies Download (Unzip the "nupkg" after downloading)



Tags



STATS

must-have-score

avg-downloads-per-day

1

days-since-last-release

519