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

Difference between response.redirect and server.transfer?

775


Explain diff. Between friend and protected friend?

691


What is a uri query?

773


Can you clarified A Web service can only be written in .NET or not?

777


What kind of data can be stored in viewstate?

760


Explain difference betn dataset and recordset?

697


What are the events in a page life cycle?

725


What is the file extension of web service?

755


What is route in web api?

736


What is the maximum number of classes that can be contained in one dll file?

958


What is rending process in ASP.NET?

827


How can I configure asp.net applications that are running on a remote machine?

791


What is inproc and outproc?

759


How to add DateTime Control in normal DataGrid Server Control?

846


How can we register exception filter from the action?

853