SessionStateSection.RegenerateExpiredSessionId Propriedade

Definição

Obtém ou define um valor que indica se a ID de sessão será emitida novamente quando uma ID de sessão expirada for especificada pelo cliente.Gets or sets a value indicating whether the session Id will be re-issued when an expired session ID is specified by the client.

public:
 property bool RegenerateExpiredSessionId { bool get(); void set(bool value); };
[System.Configuration.ConfigurationProperty("regenerateExpiredSessionId", DefaultValue=Mono.Cecil.CustomAttributeArgument)]
public bool RegenerateExpiredSessionId { get; set; }
[<System.Configuration.ConfigurationProperty("regenerateExpiredSessionId", DefaultValue=Mono.Cecil.CustomAttributeArgument)>]
member this.RegenerateExpiredSessionId : bool with get, set
Public Property RegenerateExpiredSessionId As Boolean

Valor da propriedade

Boolean

true se a ID de sessão precisar ser regenerada; caso contrário, false.true if the session ID must be regenerated; otherwise, false. O valor padrão é true.The default value is true.

Atributos

Exemplos

O exemplo de código a seguir demonstra como obter a RegenerateExpiredSessionId propriedade.The following code example demonstrates how to get the RegenerateExpiredSessionId property. Consulte o exemplo de código no SessionStateSection tópico de classe para saber como acessar o SessionStateSection objeto.Refer to the code example in the SessionStateSection class topic to learn how to access the SessionStateSection object.

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

Comentários

Por padrão, somente as URLs sem cookie são reemitidas quando o RegenerateExpiredSessionId está habilitado.By default, only cookieless URLs are reissued when RegenerateExpiredSessionId is enabled.

Aplica-se a