Language

SessionStateSection.CookieName プロパティ

定義

Cookie 名を取得または設定します。

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

プロパティ値

セッション識別に使用する HTTP Cookie の名前。

属性

例

次のコード例では、 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" です。

適用対象