RoleManagerSection Constructor

Definition

Initializes a new instance of the RoleManagerSection class by using default settings.

public:
 RoleManagerSection();
public RoleManagerSection ();
Public Sub New ()

Remarks

The RoleManagerSection constructor is not intended to be used directly from your code. It is called by the ASP.NET configuration system. You obtain an instance of the RoleManagerSection class by using the GetSection method.

The following table shows the default settings that are used for the RoleManagerSection constructor.

Property Default value
Enabled false
CacheRolesInCookie false
CookieName ".ASPXROLES"
CookiePath "/"
CookieProtection All
CookieRequireSSL false
CookieSlidingExpiration true
CookieTimeout 30, in minutes
CreatePersistentCookie false
DefaultProvider "AspNetSqlRoleProvider"
Domain An empty string ("")
MaxCachedResults 25

Applies to