Copied to clipboard

Flag this post as spam?

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


  • Romeo Cadaoas 33 posts 110 karma points
    Feb 02, 2017 @ 10:02
    Romeo Cadaoas
    0

    Save Members in a different database

    Is there a way to save members in a different database? (I'm talking about the whole member's tables not member properties)

    The reason for me asking this is to not worry about members data during content freeze implementation and parallel website migration.

  • Mike Chadwick 41 posts 182 karma points
    Apr 02, 2017 @ 07:30
    Mike Chadwick
    103

    You can use the .NET Framework to implement an external Membership Database and then develop a custom Membership Provider class. You can then override all the methods and implement the required functionality.

    Finally you need to configure Umbraco to use it in the web.config file, replacing the default setting for Membership Provider.

    Bare in mind Umbraco has two Providers, one for backoffice users and another for website users, so make sure you configure the right one. UsersMembershipProvider is for backoffice.

    If you use the standard membership database schema then you should be able to find a standard implementation of the MembershipProvider.

    If you use a custom database schema then you will need to override methods in your custom MembershipProvider implementation.

    Note: You must implement all functions in the provider.

    Here are a few useful links:

    https://msdn.microsoft.com/en-us/library/6e9y4s5t.aspx

    https://msdn.microsoft.com/en-us/library/2fx93s7w.aspx

    https://msdn.microsoft.com/en-us/library/system.web.security.membershipprovider.aspx

    http://stackoverflow.com/questions/22705072/umbraco-overriding-or-extending-default-membership-provider

  • 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