Cookie


How to use the Cookie class of the bit Butil?

Usage
To use the browser cookie features you need to inject the Bit.Butil.Cookie class and use it like this:
@inject Bit.Butil.Cookie cookie

@code {
    await cookie.Remove("cookie-name");
}
Methods

Set, Get:
Gets/Sets a cookie by providing the cookie name (MDN).



GetAll:
Gets all cookies registered on the current document.



GetValue:
Returns the cookie value by providing its name.



Remove:
Removes a cookie by providing the its name.