Securing your site with web.config
page 2 of 5
by . .
Feedback
Average Rating: This article has not yet been rated.
Views (Total / Last 10 Days): 23306/ 53

The web.config file

web.config

web.config does most of the work for you as it tells the application the who, what, where, when and how to be authenticated (it doesn't need to tell it why).

<configuration>
<system.web>

<authentication mode="mode">
</authentication>

</system.web>
</configuration>

This is the beginnings of something bigger. The <authentication> tags and what goes between is everything ASP.NET needs to know to provide security. The 'mode' property is about how to authenticate, the possible values are - Windows, Forms and Passport.

Note : <authentication> only works in the root folder of the virtual directory's web.config, not subfolders.


View Entire Article

User Comments

Title: great   
Name: jhon
Date: 2004-09-09 3:51:04 AM
Comment:
this is great!!!!!
Title: great   
Name: great
Date: 2004-09-09 3:50:17 AM
Comment:
this is great!!!!!!11

Product Spotlight
Product Spotlight 





Community Advice: ASP | SQL | XML | Regular Expressions | Windows


©Copyright 1998-2021 ASPAlliance.com  |  Page Processed at 2021-02-25 10:46:01 AM  AspAlliance Recent Articles RSS Feed
About ASPAlliance | Newsgroups | Advertise | Authors | Email Lists | Feedback | Link To Us | Privacy | Search