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

Which two new properties are added in asp.net 4.0 page class?

0 Answers  


How to identify host of my system? How to identify servername of my system? How to identify domainname of my system?

2 Answers  


What are the advantages of asp.net?

0 Answers  


Explain the asp.net session state modes.

0 Answers  


Can we use http handlers to upload a file in asp.net?

2 Answers  






How to use ipostback?

0 Answers  


What is the main difference between grid layout and flow layout?

1 Answers  


can I use session variable in App_code Class page??

3 Answers   Wipro,


Explain the difference between server control and html control.

0 Answers  


What does the "EnableViewState" property do? Why would I want it on or off?

4 Answers  


How to store checkbox value in database in asp.net mvc? : Asp.Net MVC

0 Answers  


What are the differences between primary foreign and unique keys?

0 Answers  


Categories