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

What is jade template engine?

1041


Explain the role of global.asax?

997


What is the difference between WindowsDefaultLocation and WindowsDefaultBounds?

1169


Which authentication uses a combination of windows and iis authentication?

1095


Explain the difference between authentication and authorization.

1066


How do you secure your connection string information?

992


How do you change the session time-out value?

1053


What does it mean your session has timed out?

987


What are asp.net web forms?

1018


i want to implement grid view value in paypal site. so how to create this code in asp.net with C#

1934


Difference between .NET and previous version?

2592


What is cache in asp net?

1005


What parameters can you pass in the url of the api? Can get and post use the same url?

994


What is server infrastructure?

1122


How does the iis work?

1041