Seems like an obvious upgrade from regular localstorage, but I've only seen it used with Blazor.
I'm using ASP.NET Core 6.0 MVC.
Should I just put this in my program.cs?
builder.Services.AddScoped<ProtectedLocalStorage>();
Protected Browser Storage relies on ASP.NET Core Data Protection and is only supported for server-side Blazor apps.
set cookie:
Httpcontext.Response.Cookies.Append("key", "value", new CookieOptions(){......})
read cookie:
HttpContext.Request.Cookies["key"]