SessionSecurityToken.IsPersistent 屬性

定義

取得或設定值,這個值表示這個權杖所表示的 cookie 是否為持續性的。

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

屬性值

如果 cookie 是永續性的,則為 true,否則為 false

備註

IsPersistent如果 屬性為 true,則 Cookie 會寫入為永續性 Cookie。 在關閉瀏覽器之後,永續性 Cookie 會保持有效,直到到期為止。

適用於