RoleManagerSection.CookieRequireSSL Property
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets or sets a value indicating whether the cookie that is used to cache role names requires a Secure Sockets Layer (SSL) connection in order to be returned to the server.
public:
property bool CookieRequireSSL { bool get(); void set(bool value); };
[System.Configuration.ConfigurationProperty("cookieRequireSSL", DefaultValue=false)]
public bool CookieRequireSSL { get; set; }
[<System.Configuration.ConfigurationProperty("cookieRequireSSL", DefaultValue=false)>]
member this.CookieRequireSSL : bool with get, set
Public Property CookieRequireSSL As Boolean
true
if an SSL connection is needed in order to return to the server the cookie where role names are cached; otherwise, false
. The default is false
.
- Attributes
The following code example demonstrates how to use the CookieRequireSSL property. This code example is part of a larger example provided for the RoleManagerSection class.
// Display CookieRequireSSL property.
Console.WriteLine("CookieRequireSSL: {0}",
configSection.CookieRequireSSL);
' Display CookieRequireSSL property.
Console.WriteLine("CookieRequireSSL: {0}", _
configSection.CookieRequireSSL)
You can specify whether SSL is required to return the role names cookie to the server by setting the cookieRequireSSL
attribute in the Web.config file for your ASP.NET application.
Proizvod | Verzije |
---|---|
.NET Framework | 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
Povratne informacije o proizvodu .NET
.NET je projekt otvorenog koda. Odaberite vezu za slanje povratnih informacija: