You can save the hashed password in the web.config file and than can read it. This is not one of the best approach but will work for you. To store information for 5 User is not going to consume space in Web.Config file.
由于您已经使用 .NET Forms 身份验证,因此您可以在第二个应用程序的成员资格提供程序设置中使用不同的“应用程序名称”,它将为您维护两组用户。
Since you are using .NET Forms authentication already, you could use a different "Application Name" in the Membership Provider settings for the second application and it will maintain two sets of users for you.
发布评论
评论(2)
您可以将散列密码保存在 web.config 文件中,然后可以读取它。这不是最好的方法之一,但对您有用。存储 5 个用户的信息不会占用 Web.Config 文件中的空间。
You can save the hashed password in the web.config file and than can read it. This is not one of the best approach but will work for you. To store information for 5 User is not going to consume space in Web.Config file.
由于您已经使用 .NET Forms 身份验证,因此您可以在第二个应用程序的成员资格提供程序设置中使用不同的“应用程序名称”,它将为您维护两组用户。
Since you are using .NET Forms authentication already, you could use a different "Application Name" in the Membership Provider settings for the second application and it will maintain two sets of users for you.