How to authenticate users using web.config ?

Answer Posted / alb.shah

if we are using form based authentication at that time in
the web.config
we can set the autentication mode to "form"

then we can specify the user name and password which we are
going to access.
if any one can access that application then you can specify
<allow users="*">
inside the authentication tags

<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 ?    6 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

In which event of page cycle is the viewstate available?

562


Explain about secure socket layer?

516


Explain how cookies work. Give an example of cookie abuse.

701


How could you modify xaml content from javascript?

500


What is sql data source control in asp.net?

560






What is the use of web.config and machine.config files?

616


What does asp in asp.net stand for?

508


Define viewstate in .net?

529


What is difference between session and application in asp net?

474


Explain serialization and deserialization?

529


I am trying to implement sorting facility from client side code in GridView Control. So how can I fill up an Array inside client side code (using JavaScript), i want to assign my DataSet object declared and filled up on Server side(in code behind) to the array (on client side)

1480


Can master pages be nested?

501


What are the two properties that are common on every validation control?

539


What is %20 in a url?

531


What is Model-View-View Model?

592