Condividi tramite


SessionStateSection.CookieName Proprietà

Definizione

Ottiene o imposta il nome del 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

Valore della proprietà

Nome del cookie HTTP da usare per l'identificazione della sessione.

Attributi

Esempio

Nell'esempio di codice seguente viene illustrato come ottenere la CookieName proprietà . Fare riferimento all'esempio di codice nell'argomento della SessionStateSection classe per informazioni su come ottenere la sezione .

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

Commenti

Il valore predefinito è "ASP.NET_SessionId".

Si applica a