How To Use Browser Storage in Blazor Server (.NET 5+)

preview_player
Показать описание
The browser's session storage allows us to store data relevant to the current user and tab. The local storage
allows us to store data relevant to a user but across tabs and sessions.

In this video, I will show you how to access the local and session storage in Blazor Server using C# instead of JavaScript.

00:00 Introduction
00:32 ASP.NET Core Protected Browser Storage
00:59 WebAssembly
01:21 Accessing the Browser Storage in Blazor Server
07:23 Properly handling prerendering
08:51 Conclusion & Gotchas

🔥 C#/.NET Bootcamp: The Fundamentals & more (Code FRIENDS10 for 10% OFF)*

📌 .NET Developer Roadmap

📌 Protected Browser Storage (GitHub):

📌 Protected Browser Storage - Failed attempt with prerendering enabled (GitHub):

📌 YouTube Playlists:

✅ SUBSCRIBE FOR MORE VIDEOS

🚀 CONNECT & SUPPORT

* Affiliate Link: I earn a small commission at no additional cost
Рекомендации по теме
Комментарии
Автор

Hey buddy I need help how to store token in session using server

SammyDon
Автор

Here it says blazor server, and its a blazor web app, maybe iam missing something but why didnt we create a blazor server app? Since Iam commenting, does anyone know if we can manage sessions in blazor server app? Thanks in advance

MyClone-zy
join shbcf.ru