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


Please Help Members By Posting Answers For Below Questions

Explain authorization levels in .net ?

612


Describe the diffeerence between inline and code behind?

513


Describe session handling in a webfarm, how does it work and what are the limits?

584


What is asynchronous call?

584


Explain different authentication modes in asp.net?

552






what is the difference between response.write() and response.output.write()?

700


Explain Apache web servers ? How can you get ASP.NET running in Apache web servers - why should you do this?

513


Difference between application events and session events

594


What is caching in asp.net?

566


What are the security types in ASP/ASP.NET? Different Authentication modes?

565


Where session variables are stored?

546


What are the 3 types of web?

508


What do you understand by aggregate dependency?

618


Why will you usually create an aspnet user account in the database for an asp.net web application?

539


What is query string with example?

521