Use sessionStorage and localStorage in Blazor
Traditionally developers used cookies to store small pieces of information on the client machine. Although you can use cookies in Blazor apps, there is a modern and more handy alternative -- sessionStorage and localStorage objects.
https://www.binaryintellect.net/articles/7d88d63b-768c-4e78-a934-cacac486b22a.aspx