Personalized user configuration

Personalized user configuration

1. Overview of Personalized User Configuration

    In the ASP.NET 1.X era, there are two main ways to process user configuration information: one is to use the database to store information, and the other is to use the Session and Application objects. To ensure the simplicity and usefulness of personalized user profiles, a variety of strongly typed APIs accessible from anywhere on the application are provided to facilitate the storage, display and management of user profile information.

    Using the Personalized User Configuration feature consists of two core steps: First, configure the application to enable and define the configuration information to be stored and tracked for the user.

2. <profile> configuration section

     Set the <profile> configuration section, and often configure three parts of it:

        1. <profile> own attribute settings;

        2. The subsection <properties> property settings of the <profile> configuration section;

        3. Set the <providers> attribute of the subsection of the <profile> configuration section.

       



3. Personalized user configuration API

        1. Create a Login page as a user login page

    

        2. Create a Welcome page


      

        3. Add a Profileinfo page to handle user personalization settings


Fourth, use personalized configuration to store complex types

    When developing large-scale applications and commercial sites, it is often necessary to store complex collections of user-defined data types.


        Modify part of the code of other pages

5. Anonymous Personalization

    1. First turn on anonymous personalization


    2. Modify the background code


    3. Set up anonymous users


Then it's ready to use!

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324626101&siteId=291194637