System.Web.Security.Roles.CookieProtectionValue Property

Gets a value that indicates how role names cached in a cookie are protected.

Syntax

public static CookieProtection CookieProtectionValue { get; }

Value

Documentation for this section has not yet been entered.

Remarks

You can specify the protection of the cookie where roles are cached for your application by setting the cookieProtection attribute in the Web.config file for your ASP.NET application. The cookieProtection attribute takes a System.Web.Security.CookieProtection enumeration value that indicates whether the role names are encrypted, validated, both, or neither.

Requirements

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