Class SessionAffinityCookieConfig
Config for session affinity cookies.
Inheritance
System.Object
SessionAffinityCookieConfig
Implements
System.IEquatable<SessionAffinityCookieConfig>
Namespace: Yarp.ReverseProxy.Configuration
Assembly: Yarp.ReverseProxy.dll
Syntax
public sealed class SessionAffinityCookieConfig : object
Properties
| Improve this Doc View SourceDomain
The domain to associate the cookie with.
Declaration
public string? Domain { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.String> |
Expiration
Gets or sets the lifespan of a cookie.
Declaration
public TimeSpan? Expiration { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<TimeSpan> |
HttpOnly
Indicates whether a cookie is accessible by client-side script.
Declaration
public bool? HttpOnly { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Boolean> |
Remarks
Defaults to "true".
IsEssential
Indicates if this cookie is essential for the application to function correctly. If true then consent policy checks may be bypassed.
Declaration
public bool? IsEssential { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Boolean> |
Remarks
Defaults to "false".
MaxAge
Gets or sets the max-age for the cookie.
Declaration
public TimeSpan? MaxAge { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<TimeSpan> |
Path
The cookie path.
Declaration
public string? Path { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.String> |
SameSite
The SameSite attribute of the cookie.
Declaration
public SameSiteMode? SameSite { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<SameSiteMode> |
Remarks
Defaults to
SecurePolicy
The policy that will be used to determine
Declaration
public CookieSecurePolicy? SecurePolicy { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<CookieSecurePolicy> |
Remarks
Defaults to
Methods
| Improve this Doc View SourceEquals(SessionAffinityCookieConfig)
Declaration
public bool Equals(SessionAffinityCookieConfig other)
Parameters
Type | Name | Description |
---|---|---|
SessionAffinityCookieConfig | other |
Returns
Type | Description |
---|---|
System.Boolean |
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
System.Int32 |
Implements
System.IEquatable<>