在WebConfig文件中如何设置AUTHENTICATION DETAILS(表单身份验证) [英] In WebConfig file how to set AUTHENTICATION DETAILS (Form authentication)
本文介绍了在WebConfig文件中如何设置AUTHENTICATION DETAILS(表单身份验证)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
亲爱的先生,
在WebConfig文件中如何设置AUTHENTICATION DETAILS ...特定用户只想通过用户名和密码访问特定内容.....
或
我想在web配置文件中设置用户名密码....通过凭证只有web应用程序想要访问...
i令人困惑....
请通过示例代码了解表单身份验证...
感谢你
Dear Sir,
In WebConfig file how to set AUTHENTICATION DETAILS... Specific user only wants to access the particular through User Name and Password.....
or
I want to set username password in web config file.... Through the credentials only web application wants to access ...
i am confusing....
Please aware of me about form authentication with sample code...
Thanking you
推荐答案
1.对于使用表单身份验证,在web.config中必须具有以下设置:
1.For using Form authentication, in your web.config you must have the next settings:
<authentication mode="Forms">
<forms loginUrl="~/Account/LogOn" timeout="2880" />
</authentication>
2.您可以在我的下一篇文章中找到ASP.NET MVC的示例: MVC基本站点:步骤1 - 多语言站点骨架 [ ^ ]
这篇关于在WebConfig文件中如何设置AUTHENTICATION DETAILS(表单身份验证)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文