.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
 
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
david stephan

Home >> Articles >> ASP.NET >> Post New Resource Bookmark and Share   

 Subscribe to Articles

Form Authentication using ASP.NET

Posted By:Syed Shakeer Hussain       Posted Date: June 19, 2009    Points: 25    Category: ASP.NET    URL: http://www.dotnetspark.com  
 

Form Authentication using ASP.NET

 

In Web.Config File

Here we show you a basic example of what a web.config file looks like when it has be set to use form authentication. I will go in further detail and explain the tags.

xml version="1.0"?>
<configuration>
<system.web>
  <authentication mode="Forms">
  <forms loginUrl="login.aspx" protection="All" timeout="30">
    <credentials passwordFormat="Clear">
    <user name="admin" password="adminpwd"/>
    <user name="coder" password="coderpwd"/>
    credentials>
  forms>
 authentication>
<authorization>