6.6. Configuring Forms Authentication Inside IIS 7.0

The <forms /> configuration section is usually edited inside the application's web.config. If you want to change the default predefined values, you configure a <forms /> section by specifying the name, path, login page, cookieless mode, authentication cookie time-out, sliding expiration, whether forms authentication requires SSL, and whether the authentication cookie is enabled for cross-application redirects. Although the application's web.config configuration file provides a very good IntelliSense to manipulate the different configuration sections, IIS 7.0, among the many new integration features with ASP.NET, provides a graphical user interface to edit the application's <forms /> authentication configuration section and some other configuration sections, too (SessionState is an example). To edit the <forms> authentication section, right-click on the FormsAuthenticationModule inside the Authentication applet window. Figure 6-4 shows the IIS 7.0 Windows Form used to edit the <forms /> section for an application.

As you can see, the entire <forms /> authentication configuration section is now editable through the IIS 7.0 Manager tool.

Figure 6-4. Figure 6-4

Get Professional ASP.NET 3.5 Security, Membership, and Role Management with C# and VB now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.