Class CookieOptions
Cookie options.
Inheritance
Inherited Members
Namespace: ComponentSpace.Saml2.Bindings
Assembly: ComponentSpace.Saml2.dll
Syntax
public class CookieOptions
Properties
Domain
Gets or sets the cookie domain.
Declaration
public string Domain { get; set; }
Property Value
Type | Description |
---|---|
System.String | The cookie domain. |
Expires
Gets or sets the expiration date and time.
Declaration
public DateTimeOffset? Expires { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.DateTimeOffset> | The expiration date and time. |
HttpOnly
Gets or sets the flag indicating whether the cookie is accessible by client-side script.
Declaration
public bool HttpOnly { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | The flag indicating whether the cookie is accessible by client-side script. |
IsEssential
Gets or sets the flag indicating whether the cookie is essential for the application to run.
Declaration
public bool IsEssential { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | The flag indicating whether the cookie is essential for the application to run. |
MaxAge
Gets or sets the maximum age.
Declaration
public TimeSpan? MaxAge { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.TimeSpan> | The maximum age. |
Path
Gets or sets the cookie path.
Declaration
public string Path { get; set; }
Property Value
Type | Description |
---|---|
System.String | The cookie path. |
SameSite
Gets or sets the SameSite mode.
Declaration
public CookieOptions.SameSiteMode SameSite { get; set; }
Property Value
Type | Description |
---|---|
CookieOptions.SameSiteMode | The SameSite mode. |
Secure
Gets or sets the flag indicating whether the cookie is transmitted over HTTPS only.
Declaration
public bool Secure { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | The flag indicating whether the cookie is transmitted over HTTPS only. |