Class SessionAffinityCookieConfig
Config for session affinity cookies.
Implements
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 |
---|---|
Nullable<String> |
Expiration
Gets or sets the lifespan of a cookie.
Declaration
public TimeSpan? Expiration { get; set; }
Property Value
Type | Description |
---|---|
Nullable<TimeSpan> |
HttpOnly
Indicates whether a cookie is accessible by client-side script.
Declaration
public bool? HttpOnly { get; set; }
Property Value
Type | Description |
---|---|
Nullable<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 |
---|---|
Nullable<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 |
---|---|
Nullable<TimeSpan> |
Path
The cookie path.
Declaration
public string? Path { get; set; }
Property Value
Type | Description |
---|---|
Nullable<String> |
SameSite
The SameSite attribute of the cookie.
Declaration
public SameSiteMode? SameSite { get; set; }
Property Value
Type | Description |
---|---|
Nullable<SameSiteMode> |
Remarks
Defaults to
SecurePolicy
The policy that will be used to determine
Declaration
public CookieSecurePolicy? SecurePolicy { get; set; }
Property Value
Type | Description |
---|---|
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 |
---|---|
Boolean |
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
Int32 |