Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Ole Andreas Myhre Olsen 4 posts 74 karma points
    May 02, 2022 @ 18:50
    Ole Andreas Myhre Olsen
    0

    HandleLogout in UmbLoginStatusController fails after timeout

    Hi Umbracians!

    I have a simple logout button which works fine as long as the session is active, but if the session has timed out (or logged out in another tab/window) it shows the error:

    Server Error in '/' Application. This type of page is not served. Description: The type of page you have requested is not served because it has been explicitly forbidden. Please review the URL below and make sure that it is spelled correctly. Requested URL: /umbraco/RenderMvc

    Maybe this is a simple error, but I can't seem to find the correct soulution 🙈

    My logout looks like this:

                        @using (Html.BeginUmbracoForm<UmbLoginStatusController>("HandleLogout"))
                        {
                            <button class="list-group-item list-group-item-action">
                                <i class="far fa-power-off" aria-hidden="true"></i>
                                Log out
                            </button>
                            @Html.HiddenFor(m => logoutModel.RedirectUrl)
                        }
    
Please Sign in or register to post replies

Write your reply to:

Draft