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

Top 5 Contributors of the Month
Melody Anderson

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"?>
  <authentication mode="Forms">
  <forms loginUrl="login.aspx" protection="All" timeout="30">
    <credentials passwordFormat="Clear">
    <user name="admin" password="adminpwd"/>
    <user name="coder" password="coderpwd"/>