COMP2098 Chapter Notes -Asp.Net, Wildcard Character
Document Summary
To implement forms-based security, you need to follow three steps: set the authentication mode to forms authentication in the web. config file. (if you prefer a graphical tool, you can use the wat during development or iis. Manager after deployment. : restrict anonymous users from a specific page or directory in your application, create the login page. You define the type of security in the web. config file by using the tag. The following example configures the application to use forms authentication by using the. It also sets several of the most important settings using a nested tag. Namely, it sets the name of the security cookie, the length of time it will be considered valid (in minutes), and the page that allows the user to log in. To control who can and can"t access your website, you need to add access control rules to the. Here"s an example that duplicates the default behavior: