Export (0) Print
Expand All
2 out of 2 rated this helpful - Rate this topic

FormsAuthenticationConfiguration.Cookieless Property

Gets or sets a value indicating whether forms-based authentication should use cookies.

Namespace: System.Web.Configuration
Assembly: System.Web (in system.web.dll)
public HttpCookieMode Cookieless { get; set; }
/** @property */
public HttpCookieMode get_Cookieless ()

/** @property */
public void set_Cookieless (HttpCookieMode value)

public function get Cookieless () : HttpCookieMode

public function set Cookieless (value : HttpCookieMode)

Not applicable.

Property Value

One of the HttpCookieMode values. The default value is UseDeviceProfile.

The Cookieless property defines whether forms-based authentication should use a cookie to exchange user information.

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;


Windows 98, Windows Server 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.