System.Web.Security.RolePrincipal.IsRoleListCached Property

Gets a value indicating whether the list of roles for the user has been cached in a cookie.

Syntax

public bool IsRoleListCached { get; }

Value

Documentation for this section has not yet been entered.

Remarks

If the cacheRolesInCookie attribute in the Web.config file for the application is set to true, then a list of role names for the current user is written to a cookie when user membership in a particular role is checked. The RolePrincipal.IsRoleListCached property indicates whether role names have been written to the cookie. Note that, even though the cacheRolesInCookie configuration attribute may be true, the RolePrincipal.IsRoleListCached property does not return true until after role information has been written to the cookie. If no role checks are performed for a user, RolePrincipal.IsRoleListCached will return false.

Requirements

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