SessionOptions.Cookie 屬性

定義

決定用來建立 Cookie 的設定。

Name 預設為 CookieNamePath 預設為 CookiePathSameSite 預設為 LaxHttpOnly預設值為trueIsEssential 預設值為false

public:
 property Microsoft::AspNetCore::Http::CookieBuilder ^ Cookie { Microsoft::AspNetCore::Http::CookieBuilder ^ get(); void set(Microsoft::AspNetCore::Http::CookieBuilder ^ value); };
public Microsoft.AspNetCore.Http.CookieBuilder Cookie { get; set; }
member this.Cookie : Microsoft.AspNetCore.Http.CookieBuilder with get, set
Public Property Cookie As CookieBuilder

屬性值

CookieBuilder

適用於