FormsAuthenticationConfiguration.Cookieless Property
Definition
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 forms-based authentication should use cookies.
public:
property System::Web::HttpCookieMode Cookieless { System::Web::HttpCookieMode get(); void set(System::Web::HttpCookieMode value); };
[System.Configuration.ConfigurationProperty("cookieless", DefaultValue=System.Web.HttpCookieMode.UseDeviceProfile)]
public System.Web.HttpCookieMode Cookieless { get; set; }
[<System.Configuration.ConfigurationProperty("cookieless", DefaultValue=System.Web.HttpCookieMode.UseDeviceProfile)>]
member this.Cookieless : System.Web.HttpCookieMode with get, set
Public Property Cookieless As HttpCookieMode
Property Value
One of the HttpCookieMode values. The default value is UseDeviceProfile.
- Attributes
Examples
The following code example demonstrates how to access the Cookieless property. Refer to the code example in the FormsAuthenticationConfiguration class topic to learn how to get the section.
// Get current Cookieless.
System.Web.HttpCookieMode currentCookieless =
formsAuthentication.Cookieless;
// Set current Cookieless.
formsAuthentication.Cookieless =
HttpCookieMode.AutoDetect;
' Get current Cookieless.
Dim currentCookieless _
As System.Web.HttpCookieMode = _
formsAuthentication.Cookieless
' Set current Cookieless.
formsAuthentication.Cookieless = HttpCookieMode.AutoDetect
Remarks
The Cookieless property defines whether forms-based authentication should use a cookie to exchange user information.
Applies to
See also
Σχόλια
https://aka.ms/ContentUserFeedback.
Σύντομα διαθέσιμα: Καθ' όλη τη διάρκεια του 2024 θα καταργήσουμε σταδιακά τα ζητήματα GitHub ως μηχανισμό ανάδρασης για το περιεχόμενο και θα το αντικαταστήσουμε με ένα νέο σύστημα ανάδρασης. Για περισσότερες πληροφορίες, ανατρέξτε στο θέμα:Υποβολή και προβολή σχολίων για