Difference Between Forms and Windows Authentication in ASP.
NET
Feature Forms Authentication Windows Authentication
Definition Custom login using a web form Uses Windows credentials
User Input User enters credentials manually Automatic using Windows account
Login Page Custom login page required No login page needed
Authentication Source Custom DB or store Active Directory
Best For Internet/public web apps Intranet/internal apps
Web.config Setting <authentication mode='Forms' /> <authentication mode='Windows' />
IIS Configuration Enable Anonymous Authentication Enable Windows Authentication
Session Handling Uses authentication cookies Uses NTLM/Kerberos
User Access FormsAuthentication API User.Identity.Name
Security Depends on implementation Secure in internal networks
Customization Fully customizable Limited customization