共用方式為


SessionOptions.CookieSecure 屬性

定義

警告

This property is obsolete and will be removed in a future version. The recommended alternative is Cookie.SecurePolicy.

此屬性已過時,未來版本將會移除。 建議的替代方案是在 上 Cookie

決定是否應該只在 HTTPS 要求傳送 Cookie。

public:
 property Microsoft::AspNetCore::Http::CookieSecurePolicy CookieSecure { Microsoft::AspNetCore::Http::CookieSecurePolicy get(); void set(Microsoft::AspNetCore::Http::CookieSecurePolicy value); };
public Microsoft.AspNetCore.Http.CookieSecurePolicy CookieSecure { get; set; }
[System.Obsolete("This property is obsolete and will be removed in a future version. The recommended alternative is Cookie.SecurePolicy.")]
public Microsoft.AspNetCore.Http.CookieSecurePolicy CookieSecure { get; set; }
member this.CookieSecure : Microsoft.AspNetCore.Http.CookieSecurePolicy with get, set
[<System.Obsolete("This property is obsolete and will be removed in a future version. The recommended alternative is Cookie.SecurePolicy.")>]
member this.CookieSecure : Microsoft.AspNetCore.Http.CookieSecurePolicy with get, set
Public Property CookieSecure As CookieSecurePolicy

屬性值

屬性

適用於