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
Explain authorization levels in .net ?
Describe the diffeerence between inline and code behind?
Describe session handling in a webfarm, how does it work and what are the limits?
What is asynchronous call?
Explain different authentication modes in asp.net?
what is the difference between response.write() and response.output.write()?
Explain Apache web servers ? How can you get ASP.NET running in Apache web servers - why should you do this?
Difference between application events and session events
What is caching in asp.net?
What are the security types in ASP/ASP.NET? Different Authentication modes?
Where session variables are stored?
What are the 3 types of web?
What do you understand by aggregate dependency?
Why will you usually create an aspnet user account in the database for an asp.net web application?
What is query string with example?