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

IN an ASP.NET Web application if there is any error, how can you debug?

1015


What’s the catch?

1041


What are tuples?

1030


How do u declare static variable and how it is declared and what is its lifetime?

973


How would you create a permanent cookie?

978


Give some salient points of difference between request processor and request dispatcher.

1013


What is route in web api?

962


What is a response cookie?

1053


how to include timer or counting time to display next page in asp.net

2094


6. Tell us about a time when you failed to meet a deadline. What were the repercussions?

2116


Demonstrate Render and PreRender?

1034


What are session state modes?

922


Explain significance of routing? : asp.net mvc

1068


What are resource file and how do we generate resource file?

926


What are the namespaces used in asp.net mvc? : asp.net mvc

997