Copied to clipboard

Flag this post as spam?

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


  • Simon 24 posts 127 karma points
    Dec 23, 2010 @ 09:48
    Simon
    0

    With own MemberProvider should I use Membership or Member class?

    Hi

    I've succesfully implemented a custom Membership (and Role and Profile) Provider.  I can add users in the members section and login using the default .net login/register controls.

    However I'm confused as to what I should be using to get member objects?

    ie Membership.GetUser() or Member.GetCurrentMember().

    Membership does work but Member just returns null.  Is this expected?  Should I be using Membership anyway?

    Si

  • Richard Soeteman 4049 posts 12922 karma points MVP 2x
    Dec 23, 2010 @ 14:52
    Richard Soeteman
    0

    HI,

    With your own Membership provider you can only use the normal Membership API, in your case  Membership.GetUser(). The Member objects are for the Umbraco Member API only, most of these methods are marked as depricated anyway. So Membership.GetUser() will also work if you configured the default Membership provider.

    Hope this helps you,

    Richard

Please Sign in or register to post replies

Write your reply to:

Draft