CookieHandlerElement.PersistentSessionLifetime Propiedad

Definición

Obtiene o establece la duración de las cookies emitidas por el controlador.

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 de propiedad

TimeSpan

TimeSpan que representa la duración de la cookie. El valor predeterminado es 0 días ("0.0:0:0"). El valor debe ser un valor entre 0 ("0.0:0:0") y 365 ("365.0:0:0") días.

Atributos

Comentarios

Representa el persistentSessionLifetime atributo del < elemento cookieHandler. >

Se aplica a

Consulte también