Is there any session storage function I can use in Radzen?

Radzen doesn't have its own session storage. For Blazor Server applications you can use the built-in one: https://docs.microsoft.com/en-us/aspnet/core/blazor/state-management?view=aspnetcore-5.0&pivots=server#aspnet-core-protected-browser-storage

You can use the *.razor.cs file of your page to inject the storage API:

using Microsoft.AspNetCore.Components.Server.ProtectedBrowserStorage;
using Microsoft.AspNetCore.Components;

namespace MyApplication
{
    public partial class MyPageComponent
    {
         [Inject]
         public ProtectedSessionStorage ProtectedSessionStore { get; set; }
    }
}
2 Likes