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

If there is submit button in a from tell us the sequence what happens if submit is clicked and in form action is specified as some other page ?

1 Answers   MMTS,


How can I have a particular web page in an asp.net application which displays its own error page?

0 Answers  


Is session server side or client side?

0 Answers  


In your ASP.NET 2.0 web application you want to display an image that is selected from a collection of images. What approach will you use to implementing this?

0 Answers   HCL,


Is viewstate secure?

0 Answers  






About DataAdapters ?

8 Answers   Accenture,


What is the difference between table and query?

0 Answers  


If I'm developing an application that must accommodate multiple security levels though secure login and my ASP.NET web application is spanned across three web-servers (using round-robin load balancing) what would be the best approach to maintain login-in state for the users?

7 Answers   Syntax Softtech,


What are client activated objects?

0 Answers  


Where can i get Latest Microsoft .Net Certification Dumps & what Types of .Net Certifications are there?

2 Answers   Protech,


web farm .. how does session shuld be stored... if inproc used? does the session persists from one server to other.

2 Answers   TCS,


write six HTTP request method?

4 Answers   IBM,


Categories