System.Web.Security.RoleManagerModule Class

Manages a System.Web.Security.RolePrincipal instance for the current user. This class cannot be inherited.

See Also: RoleManagerModule Members


public sealed class RoleManagerModule : System.Web.IHttpModule


The System.Web.Security.RoleManagerModule class is used to assign a System.Web.Security.RolePrincipal to the System.Web.HttpContext.User property of the System.Web.HttpContext.Current System.Web.HttpContext.

When a request completes, the System.Web.Security.RoleManagerModule refreshes the roles cookie that contains cached role information. If the System.Web.HttpContext.User property is of type System.Web.Security.RolePrincipal, and that System.Web.Security.RolePrincipal indicates that its cached role list has been modified by setting the RolePrincipal.CachedListChanged property to true, the System.Web.Security.RoleManagerModule will update the roles cookie that contains cached role information.

This class is not intended to be used directly from your code.


Namespace: System.Web.Security
Assembly: System.Web (in System.Web.dll)
Assembly Versions:
Since: .NET 2.0