How to authenticate users using web.config ?

Answers were Sorted based on User's Feedback



How to authenticate users using web.config ?..

Answer / 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

How to authenticate users using web.config ?..

Answer / babu reddy

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

Is This Answer Correct ?    21 Yes 2 No

Post New Answer

More ASP.NET Interview Questions

Why do we need url encoding?

1 Answers  


How to find last error which occurred in Asp.net ?

1 Answers  


how we Creating a Web Service

1 Answers   Mind Tree,


Which of the following .NET framework supports Web API?

1 Answers  


When maintaining session through Sql server, what is the impact of Read and Write operation on Session objects? will performance degrade..

3 Answers   Allsec Technologies,


How to Convert a String into Float without using any built- in library of .NET String = "1235.45" needs to converted to a float

2 Answers   CA, Microsoft,


Is It Possible for Static Variables access normal variable? and Normal Varialbe Access the static Variables?

1 Answers   Phoenix Technologies,


How does a content page differ from a master page?

1 Answers  


Can we have multiple web config files for an asp.net application?

1 Answers  


What is clickid?

1 Answers  


Can the validation be done in the server side? Or this can be done only in the Client side?

2 Answers  


can u debug application programatically? if yes how?

0 Answers   FactorH,


Categories