BitzArt.Blazor.Cookies.Server
1.0.3
Prefix Reserved
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package BitzArt.Blazor.Cookies.Server --version 1.0.3
NuGet\Install-Package BitzArt.Blazor.Cookies.Server -Version 1.0.3
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="BitzArt.Blazor.Cookies.Server" Version="1.0.3" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add BitzArt.Blazor.Cookies.Server --version 1.0.3
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: BitzArt.Blazor.Cookies.Server, 1.0.3"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install BitzArt.Blazor.Cookies.Server as a Cake Addin #addin nuget:?package=BitzArt.Blazor.Cookies.Server&version=1.0.3 // Install BitzArt.Blazor.Cookies.Server as a Cake Tool #tool nuget:?package=BitzArt.Blazor.Cookies.Server&version=1.0.3
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Overview
BitzArt.Blazor.Cookies is a nuget package that simplifies working with browser cookies in Blazor applications.
You can use cookies in your Blazor applications as a way to store user's unique information, such as preferences, settings, or session / authentication data.
- Built for dotnet 8+
- Supports all Blazor United render modes
- Supports Blazor prerendering
Blazor Rendermode | Support |
---|---|
Static SSR | ✔️ |
Interactive Server | ✔️ |
Interactive WebAssembly | ✔️ |
Interactive Auto | ✔️ |
Installation
- Install the following package in your Blazor Server project:
dotnet add package BitzArt.Blazor.Cookies.Server
- Add this line to your Server project
program.cs
:
builder.AddBlazorCookies();
- Install the following package in your Blazor Client project:
dotnet add package BitzArt.Blazor.Cookies.Client
- Add this line to your Client project
program.cs
:
builder.AddBlazorCookies();
Usage
- Inject
ICookieService
in any of your Services / Blazor Components - Use
ICookieService
to interact with user's cookies.
License
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net8.0
- BitzArt.Blazor.Cookies (>= 1.0.3)
NuGet packages (2)
Showing the top 2 NuGet packages that depend on BitzArt.Blazor.Cookies.Server:
Package | Downloads |
---|---|
BitzArt.Blazor.Auth.Server
Server-side package for BitzArt.Blazor.Auth |
|
Nautilus.SecuredCookie.Server
A library to ensure cookies are encrypted with an encryption key stored on the server. |
GitHub repositories
This package is not used by any popular GitHub repositories.