How to authenticate users using web.config ?



How to authenticate users using web.config ?..

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

More ASP.NET Interview Questions

Contrast oop and soa. What are tenets of each16. How does the xmlserializer work? What acl permissions does a process using it require?

0 Answers  


main difference between asp.net2.0,asp.net1.1,asp.net1.0

15 Answers   Inflexion, Infosys, iSoft, Microsoft, Prakruthi,


how can u display multi language (i.e english,spanish...) web site?

2 Answers  


What is x xss protection?

0 Answers  


Is it possible to change the index of primary key on table?

0 Answers  






Explain the concept of MVC Scaffolding?

0 Answers   B-Ways TecnoSoft,


Describe the role of inetinfo.exe, aspnet_isapi.dll andaspnet_wp.exe in the page loading process?

1 Answers   Patni, Perot Systems, Sedna Technology,


If we write return statement in finally block will it works fine or throws any error?

1 Answers   Patni,


Code for updating the database by entering the data into textboxes in aspx form?

2 Answers   TCS, Wipro,


What is runtime host ?

3 Answers   Digital GlobalSoft,


How you can return View from ASP.NET Web API method?

0 Answers  


What?s the difference between Response.Write() andResponse.Output.Write()?

2 Answers  


Categories