Skip to content

ProtectedSessionStorage #62411

Closed
Closed
@Kuldip4053

Description

@Kuldip4053

@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

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions