Forms authentication with Asp.Net

Asp.Net
Configure the Web Application for Forms Authentication: a) IIS Configuration:In Virtual Directories properties Click the Directory Security tab, and then click the Edit button in the Anonymous access group.Select the Anonymous access check box and click on Edit button and clear the Allow IIS to control password check box. Because the default anonymous account IUSR_MACHINE does not have permission to access Active Directory, create a new least privileged account and enter the account details in the Authentication Methods dialog box. b) Modifications in Web.Config:In Web.config in the <authentication> element and change the mode attribute to Forms Add the following <forms> element as a child of the authentication element and set the loginUrl, name, timeout, and path attributes as shown in the following.<authentication mode="Forms"><forms loginUrl="logon.aspx" name="adAuthName" timeout="60" path="/"> </forms></authentication>Modify <authorization> element as following.<authorization><deny users="?" /><allow users="*" /></authorization>Add <Identity> element and set…
Read More