Copied to clipboard

Flag this post as spam?

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


  • Tom 6 posts 27 karma points
    May 11, 2015 @ 14:49
    Tom
    0

    Authentication cookie for member disappears

    Hi

    I'm having a problem accessing the current member inside a "UmbracoAuthorizedJsonController".

    I've created the "yourAuthCookie" with the following code:

    FormsAuthentication.SetAuthCookie(member.UserName, true);

    Now when I try to call the function below it removes the "yourAuthCookie" cookie. But when I call this in a e.g. a razor page  it will not be removed.

    Members.GetCurrentLoginStatus();

    Is there a way to access the current member while in the backoffice logged in as a member and a user?

    Kind regards,
    Tom

    [Information: Umbraco 7.2.4]

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies