Copied to clipboard

Flag this post as spam?

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


  • Declercq Pascal 8 posts 77 karma points
    Nov 24, 2021 @ 08:46
    Declercq Pascal
    0

    Logout does not work

    I'm using the logout coming from the login status snippet. If i'm using it from the home page, the member gets logged out but from any other page, the member stays logged in and I get redirected to the same page.

    I've already tried different RedirectUrls but with no luck ("/", "~/", "/Login", etc ...)

  • Declercq Pascal 8 posts 77 karma points
    Nov 25, 2021 @ 20:15
    Declercq Pascal
    0

    Weird that it seems I'm the only having this problem for such a trivial thing as logging of.

    After a lot of trial and error, I think there is a bug:

    the logout from the loginstatus.cshtml snippet works well if you are not in a view coming from a surface controller. If you try it from a view created by a surface controller, the postback link for the form created by the loginstatus snippet, calls the active controller where the HandleLogout action obviously doesn't exist. If I hack in the browser the post back url to '/' (instead of /umbraco/surface/MyContoller) than the logout works.

    Now I have to find out how the change the Html.BeginUmbracoForm. Attemps to do so didn't work until now. Some assitance would be welcome and appreciated

  • Asbjørn 82 posts 195 karma points c-trib
    May 25, 2022 @ 12:54
    Asbjørn
    0

    I'm hitting what seems to be the same issue. I'm using some views with custom controllers and the logout indeed does not work.

    Did you create a GitHub issue for this?

Please Sign in or register to post replies

Write your reply to:

Draft