Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

Which asp.net objects encapsulate the state of the client and the browser?

1147


Explain diff between dataset and datareader?

1035


Explain about Automatic resource management?

1116


What is asp according to you?

1093


What is the life-span of the items in the viewstate?

992


Define the term Scavenging in Caching?

1084


What is active web pages?

1008


What is Cookies Less Session?

1098


What is a server cookie?

1056


Explain the difference between dataset and datareader.

1068


what is a .xap file? Explain with an example.

1068


Explain why it is useful to use mvc instead of webforms? : asp.net mvc

1103


What is asp net_sessionid?

1145


What is session handling in a webfarm, how it can work with its limits?

1178


What are the disadvantages of using session?

1173