是不是asp.net FormsAuthentication.Authenticate()没用?

use*_*312 0 asp.net

FormsAuthentication.Authenticate()是否有用于实际的Web应用程序?

当我们可以使用asp.net成员资格在数据库中编写用户名时,为什么要在web.config文件中写一些用户名?

小智 6

当您乐意将用户名和密码放入web.config时,FormsAuthentication.Authenticate()只提供"快速简便"的方法.这可能适用于演示/测试或家庭/业余爱好者网站.当然,"适当的"Web应用程序会将用户详细信息存储在数据库中.