Share via


CookieHandlerElement.PersistentSessionLifetime Propriedade

Definição

Obtém ou define o tempo de vida dos cookies emitidos pelo manipulador.

public:
 property TimeSpan PersistentSessionLifetime { TimeSpan get(); void set(TimeSpan value); };
[System.Configuration.ConfigurationProperty("persistentSessionLifetime", DefaultValue="0:0:0", IsRequired=false)]
[System.Configuration.TimeSpanValidator(MaxValueString="365.0:0:0", MinValueString="0:0:0")]
public TimeSpan PersistentSessionLifetime { get; set; }
[<System.Configuration.ConfigurationProperty("persistentSessionLifetime", DefaultValue="0:0:0", IsRequired=false)>]
[<System.Configuration.TimeSpanValidator(MaxValueString="365.0:0:0", MinValueString="0:0:0")>]
member this.PersistentSessionLifetime : TimeSpan with get, set
Public Property PersistentSessionLifetime As TimeSpan

Valor da propriedade

Um TimeSpan que representa o tempo de vida do cookie. O padrão é 0 dias ("0.0:0:0"). O valor deve ser um valor entre 0 ("0.0:0:0") e 365 ("365.0:0:0") dias.

Atributos

Comentários

Representa o persistentSessionLifetime atributo do <elemento cookieHandler> .

Aplica-se a

Confira também