Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

FormsAuthenticationConfiguration.Name Property

Gets or sets the cookie name.

Namespace: System.Web.Configuration
Assembly: System.Web (in system.web.dll)
public string Name { get; set; }
/** @property */
public String get_Name ()

/** @property */
public void set_Name (String value)

public function get Name () : String

public function set Name (value : String)

Not applicable.

Property Value

The name of the HTTP cookie to use for request authentication.

The following code example shows how to access the Name property Refer to the code example in the FormsAuthenticationConfiguration class topic to learn how to get the section.

// Get the current Name property value.
string currentName = formsAuthentication.Name;
// Set the Name property value.
formsAuthentication.Name = "newName";



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.