-
Notifications
You must be signed in to change notification settings - Fork 10.4k
Closed
Labels
✔️ Resolution: AnsweredResolved because the question asked by the original author has been answered.Resolved because the question asked by the original author has been answered.Status: Resolvedarea-blazorIncludes: Blazor, Razor ComponentsIncludes: Blazor, Razor Componentsquestion
Description
@Inject ProtectedSessionStorage SessionStorage
@code {
private string username = "";
private string password = "";
private async Task Loginhandle()
{
// Dummy check
if (username == "admin" && password == "123")
{
UserSession.Username = username;
await SessionStorage.SetAsync("username", username);
Navigation.NavigateTo("/");
}
}
}
the session was not sync on multiple tab at same browser window.
Expected Behavior
No response
Steps To Reproduce
No response
Exceptions (if any)
No response
.NET Version
No response
Anything else?
No response
Metadata
Metadata
Assignees
Labels
✔️ Resolution: AnsweredResolved because the question asked by the original author has been answered.Resolved because the question asked by the original author has been answered.Status: Resolvedarea-blazorIncludes: Blazor, Razor ComponentsIncludes: Blazor, Razor Componentsquestion