How to authenticate users using web.config ?
Answer Posted / 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 View All Answers
Which asp.net objects encapsulate the state of the client and the browser?
Explain diff between dataset and datareader?
Explain about Automatic resource management?
What is asp according to you?
What is the life-span of the items in the viewstate?
Define the term Scavenging in Caching?
What is active web pages?
What is Cookies Less Session?
What is a server cookie?
Explain the difference between dataset and datareader.
what is a .xap file? Explain with an example.
Explain why it is useful to use mvc instead of webforms? : asp.net mvc
What is asp net_sessionid?
What is session handling in a webfarm, how it can work with its limits?
What are the disadvantages of using session?