CookieAuthenticationOptions.ExpireTimeSpan 屬性

定義

控制在 Cookie 中儲存的驗證票證在建立時維持有效的時間。 到期資訊會儲存在受保護的 Cookie 票證中。 因此,即使瀏覽器應該清除過期的 Cookie,仍會忽略它。

這與 的值 Expires 分開,指定瀏覽器將保留 Cookie 的時間長度。

public:
 property TimeSpan ExpireTimeSpan { TimeSpan get(); void set(TimeSpan value); };
public TimeSpan ExpireTimeSpan { get; set; }
member this.ExpireTimeSpan : TimeSpan with get, set
Public Property ExpireTimeSpan As TimeSpan

屬性值

適用於