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

FormsAuthenticationConfiguration.Path Property

Gets or sets the cookie path.

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

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

public function get Path () : String

public function set Path (value : String)

Not applicable.

Property Value

The path of the HTTP cookie to use for authentication. The default value is a slash (/), which represents the Web-application root.

The Path property indicates where the authentication cookie resides and is transmitted along with the authentication cookie itself.

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

// Get the current Path.
string currentPath = formsAuthentication.Path;
// Set the Path property.
formsAuthentication.Path = "newPath";


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.