SessionStateSection.CookieName 속성

정의

쿠키 이름을 가져오거나 설정합니다.

public:
 property System::String ^ CookieName { System::String ^ get(); void set(System::String ^ value); };
[System.Configuration.ConfigurationProperty("cookieName", DefaultValue="ASP.NET_SessionId")]
public string CookieName { get; set; }
[<System.Configuration.ConfigurationProperty("cookieName", DefaultValue="ASP.NET_SessionId")>]
member this.CookieName : string with get, set
Public Property CookieName As String

속성 값

String

세션을 식별하는 데 사용할 HTTP 쿠키의 이름입니다.

특성

예제

다음 코드 예제에서는 가져오는 방법을 보여 줍니다는 CookieName 속성입니다. 코드 예제에서는 참조는 SessionStateSection 클래스 항목의 섹션을 가져오는 방법을 알아봅니다.

// Display the current CookieName property value.
Console.WriteLine("CookieName: {0}",
  sessionStateSection.CookieName);
' Display the current CookieName property value.
Console.WriteLine("CookieName: {0}", sessionStateSection.CookieName)

설명

기본값은 "ASP.NET_SessionId"입니다.

적용 대상