We have 2 sites in which one site allows the user with out
asking credentials and second one ask for credentials
through a log page. What might be the configurations
settings for both sites? We can use IIS and web.config
files together.
Answer Posted / guest
First one using windows authentication as follows.
Set Windows authentication in IIS.
And in web.config
<authorization>
<deny users=”?”/>
</authorization>
For the second one.
We set IIS authentication as none. And in web.config file
we mention as follow.
<authentication mode=”forms”>
<forms login=”login.aspx”/>
</authentication>
<authorization>
<deny user=”?”/>
<authorization>
| Is This Answer Correct ? | 4 Yes | 1 No |
Post New Answer View All Answers
Define session in asp.net.
Why do we use asp.net?
Which asp.net objects encapsulate the state of the client and the browser?
What is simple data binding?
What are cookies in asp.net?
Can we use html in asp.net?
What are server-side comments in ASP.NET?
What are validators and list some validators of asp.net?
Explain what is event bubbling?
What are the different authentication modes in asp.net?
Do you know using sql cache invalidation?
What r the asp.net list controls and difference between them?
What are the types of session in asp.net?
What is the procedure to create the environment for asp.net? : asp.net mvc
What is session mode in asp.net?