FormsAuthenticationConfiguration.CookieSameSite Property


Gets or sets the value for the SameSite attribute of the cookie.

 property System::Web::SameSiteMode CookieSameSite { System::Web::SameSiteMode get(); void set(System::Web::SameSiteMode value); };
public System.Web.SameSiteMode CookieSameSite { get; set; }
member this.CookieSameSite : System.Web.SameSiteMode with get, set
Public Property CookieSameSite As SameSiteMode

Property Value


One of the enumeration values that represents the enforcement mode of the cookie. If the application targets the .NET Framework 4.7.2 or later versions, the default value is Lax; otherwise, the default value is None.


Applies to