다음을 통해 공유


AnonymousIdentificationSection.CookiePath 속성

정의

쿠키가 저장되는 경로를 가져오거나 설정합니다.

public:
 property System::String ^ CookiePath { System::String ^ get(); void set(System::String ^ value); };
[System.Configuration.ConfigurationProperty("cookiePath", DefaultValue="/")]
[System.Configuration.StringValidator(MinLength=1)]
public string CookiePath { get; set; }
[<System.Configuration.ConfigurationProperty("cookiePath", DefaultValue="/")>]
[<System.Configuration.StringValidator(MinLength=1)>]
member this.CookiePath : string with get, set
Public Property CookiePath As String

속성 값

사용자의 익명 식별에 사용할 HTTP 쿠키의 경로입니다. 기본값은 웹 애플리케이션 루트를 나타내는 슬래시(/)입니다.

특성

예제

다음 코드 예제에서는 속성에 액세스 하는 방법을 보여 있습니다 CookiePath .

// Get CookiePath.
string cookiePath = 
    anonymousIdentificationSection.CookiePath;
Console.WriteLine("Cookie path: {0}", cookiePath);
' Get CookiePath.
Dim cookiePath As String = _
anonymousIdentificationSection.CookiePath
Console.WriteLine("Cookie path: {0}", cookiePath)

설명

이 속성은 CookiePath 인증 쿠키가 상주하고 인증 쿠키 자체와 함께 전송되는 위치를 나타냅니다.

적용 대상