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 6 posts 75 karma points
    1 week ago
    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 6 posts 75 karma points
    1 week ago
    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

Please Sign in or register to post replies

Write your reply to:

Draft