How to authenticate users using web.config ?
Answer Posted / deepa
Forms authentication can be done at web.config
<authentication mode="Forms">
<forms name="appNameAuth" path="/"
loginUrl="login.aspx" protection="All" timeout="30">
<credentials passwordFormat="Clear">
<user name="jeff" password="test" />
<user name="mike" password="test" />
</credentials>
</forms>
</authentication>
<authorization>
<deny users="?" />
</authorization>
| Is This Answer Correct ? | 29 Yes | 5 No |
Post New Answer View All Answers
What is http request and response?
Explain different authentication modes in asp.net?
What are the new login controls in asp.net 2.0?
Explain a program using razor view engine to create a simple application? : asp.net mvc
How would you implement inheritance using c#?
Define secured sockets layer.
Describe session handling in a webfarm, how does it work and what are the limits?
Explain the different types of assemblies?
What is asp.net with mvc? : Asp.Net MVC
Which object encapsulates state or data of a user?
How would ASP and ASP.NET applications run at the same time on the same server?
What is the postback property in asp.net?
What are sessions in asp net?
What is cookies in asp net?
Define static constructor?