RolePrincipal.IsRoleListCached Property
.NET Framework (current version)
Gets a value indicating whether the list of roles for the user has been cached in a cookie.
Assembly: System.Web (in System.Web.dll)
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 IsRoleListCached property indicates whether role names have been written to the cookie. Note that, even though the cacheRolesInCookie configuration attribute may be true, the 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, IsRoleListCached will return false.
.NET Framework
Available since 2.0
Available since 2.0
Show: