AnonymousIdentificationSection.CookieName Property

 

Gets or sets the cookie name.

Namespace:   System.Web.Configuration
Assembly:  System.Web (in System.Web.dll)

[ConfigurationPropertyAttribute("cookieName", DefaultValue = ".ASPXANONYMOUS")]
[StringValidatorAttribute(MinLength = 1)]
public string CookieName { get; set; }

Property Value

Type: System.String

The name of the cookie. The default value is ".ASPXANONYMOUS".

The following code example shows how to access the CookieName property.

// Get CookieName.
string cookieName =
    anonymousIdentificationSection.CookieName;
Console.WriteLine("Cookie name: {0}",
    cookieName);

.NET Framework
Available since 2.0
Return to top
Show: