Quantcast
Channel: Active questions tagged blazor - Stack Overflow
Viewing all articles
Browse latest Browse all 4839

Session management tied to an user

$
0
0

In the app, I have a requirement to display School dropdown in every page of Blazor app and School should be selected to the School assigned to the logged in user. Admins can view all the schools in the dropdown.

I can create a scoped service that has the selected school property and gets updated when another school is selected in the reusable school dropdown component.

School dropdown maintains the selection in all pages of the application but gets reset when an user opens a new tab. Agree this is the expected behavior of the scoped service. Don't want to create Singleton scope as it's for all users which doesn't my requirement.
In traditional ASP.NET web forms this selected school is maintained in a session state.
Looking for the ways to implement this requirement in Blazor.


Viewing all articles
Browse latest Browse all 4839

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>