System.Web.Security.FormsAuthentication.CookieMode Property

Gets a value that indicates whether the application is configured for cookieless forms authentication.

Syntax

public static System.Web.HttpCookieMode CookieMode { get; }

Value

Documentation for this section has not yet been entered.

Remarks

The FormsAuthentication.CookieMode property reflects the value for the cookieless attribute of the forms configuration element. The FormsAuthentication.CookieMode property determines whether the System.Web.Security.FormsAuthenticationTicket value will be stored in a session cookie in the browser or stored in the System.Web.HttpRequest.QueryString property.

Note:

When the System.Web.Security.FormsAuthenticationTicket value is stored in the URI, the length of the generated URI may be longer than the maximum length allowed. This is most likely to occur when the FormsAuthentication.FormsCookiePath property is set to the application name and the application name is long (40 or more characters), when user names in the application are long, or when long FormsAuthenticationTicket.UserData strings are stored in the System.Web.Security.FormsAuthenticationTicket value. If the generated URI is too long, the Web server will return a 400 - Bad Request error.

Requirements

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