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

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

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


What are the different types of validation controls in asp.net?

0 Answers  


When Cookies are expired in ASP.NET?

0 Answers   Sans Pareil IT Services,


What is advantage and disadvantage of viewstate

3 Answers  


A brief difference between Session and Cookies in asp.net

5 Answers   HCL, HCL Comnet,






Explain the differences between Server-side and Client-side code?

2 Answers  


which one is more flexibility and reliability and durability asp.net (VS)php which one is best and which one we do nice to create dynamic websites

0 Answers   TCS,


Which template must you provide, in order to display data in a Repeater control?

1 Answers  


How to upload a file using file upload control inside the Update Panel???

2 Answers  


Difference between ByVal and ByRef?

2 Answers   Microsoft,


What is the T-SQL equivalent of IIF (immediate if/ternary operator) function of other programming languages?

1 Answers   Syntax Softtech,


Explain method to handle error using HttpError in Web API?

0 Answers  


Categories