Open Closed

Logout not works when remove obsolete SignOutSessionStateManager #8797


User avatar
0
maria_ruiz created
  • ABP Framework version: v9.0.4
  • UI Type: Blazor Webapp Interactive Auto
  • Database System: EF Core (SQL Server)
  • Tiered (for MVC) or Auth Server Separated (for Angular): no

Hi, I am migrating the webassembly application to webapp with interactive auto rendering and net 9,

Login is overwritten,

it is indicated that the SignOutSessionStateManager is deprecated and needs to be modified by NavigateToLogout

The problem is that the url changes, but the abp application does not know that the logout has taken place.

Can you tell me how to logout? Right now I have Authentication and LoggedOut overwritten.


2 Answer(s)
  • User Avatar
    0
    maria_ruiz created

    Hi, any solution?

  • User Avatar
    0
    berkansasmaz created
    Support Team .NET Developer

    Can you try the following code block?

            if (AbpAspNetCoreComponentsWebOptions.Value.IsBlazorWebApp)
            {
                Navigation.NavigateTo(AuthenticationOptions.Value.LogoutUrl, forceLoad: true);
            }
            else
            {
                Navigation.NavigateToLogout(AuthenticationOptions.Value.LogoutUrl);
            }
    
Boost Your Development
ABP Live Training
Packages
See Trainings
Mastering ABP Framework Book
Do you need assistance from an ABP expert?
Schedule a Meeting
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v9.2.0-preview. Updated on March 13, 2025, 04:08