
540
|
Chapter 29: The System.Web.Security Namespace
This is the Title of the Book, eMatter Edition
Copyright © 2008 O’Reilly & Associates, Inc. All rights reserved.
FileAuthorizationModule
System.Web.Security (system.web.dll)
sealed class
This class is used automatically when you use the WindowsAuthenticationModule class.
ASP.NET uses FileAuthorizationModule to determine whether a specified file operation
should be allowed or denied, based on the currently authenticated NT user account
(and using Access Control Lists (ACLs)).
FormsAuthentication
System.Web.Security (system.web.dll)
sealed class
This class contains the shared (static) methods that you use in your custom login page
to authenticate a user when using the FormsAuthenticationModule class. Typically, the first
method your login page uses is the Authenticate( ) method, which compares a supplied
user ID and password against the list of allowed logins defined in the web.config file. If
this method returns True, the information is valid and you can use the
RedirectFromLoginPage( ) method to issue the Forms cookie and redirect the user to the
previously requested page, all at once. You need to supply the user ID to this method,
along with a Boolean createPersistentCookie parameter. If createPersistentCookie is set to True,a
“permanent” cookie (with an expiration date of fifty years into the future) will be
created so that the user never needs