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

How many types of sessions in asp.net?

0 Answers   MaxSolPro,


What is the difference between trace and debug in asp.net?

0 Answers  


List the major built-in objects in asp.net?

0 Answers  


What ?ll u do in early and late binding ?

1 Answers   DELL,


What are app services?

0 Answers  


What is Runtime callable wrapper?

2 Answers  


What is the difference between the asp and asp.net?

0 Answers  


Explain how is a property designated as read-only?

0 Answers  


What is asp.net mvc5? : Asp.Net MVC

0 Answers  


What are different types of authentication techniques that are used in connection strings to connect .net applications with microsoft sql server?

0 Answers  


What is meant by web application?

0 Answers  


When would you set a control's AutoPostBack property to true?

1 Answers  


Categories