Class LBCookieSessionPersistenceConfigurationDetails
  The configuration details for implementing load balancer cookie session persistence (LB cookie stickiness).
Session persistence enables the Load Balancing service to direct all requests that originate from a single logical
client to a single backend web server. For more information, see
Session Persistence.
When you configure LB cookie stickiness, the load balancer inserts a cookie into the response. The parameters configured
in the cookie enable session stickiness. This method is useful when you have applications and Web backend services
that cannot generate their own cookies.
Path route rules take precedence to determine the target backend server. The load balancer verifies that session stickiness
is enabled for the backend server and that the cookie configuration (domain, path, and cookie hash) is valid for the
target. The system ignores invalid cookies.
To disable LB cookie stickiness on a running load balancer, use the
{@link #updateBackendSet(UpdateBackendSetRequest) updateBackendSet} operation and specify null for the
LBCookieSessionPersistenceConfigurationDetails object.
Example: LBCookieSessionPersistenceConfigurationDetails: nullNote: SessionPersistenceConfigurationDetails (application cookie stickiness) and LBCookieSessionPersistenceConfigurationDetails(LB cookie stickiness) are mutually exclusive. An error results if you try to enable both types of session persistence.Warning: Oracle recommends that you avoid using any confidential information when you supply string values using the API.
    Inheritance
    
    LBCookieSessionPersistenceConfigurationDetails
   
  
  
  Assembly: OCI.DotNetSDK.Loadbalancer.dll
  Syntax
  
    public class LBCookieSessionPersistenceConfigurationDetails
   
  Properties
  
  CookieName
  
  
  Declaration
  
    [JsonProperty(PropertyName = "cookieName")]
public string CookieName { get; set; }
   
  Property Value
  
    
      
        | Type | Description | 
    
    
      
        | string | The name of the cookie inserted by the load balancer. If this field is not configured, the cookie name defaults
to "X-Oracle-BMC-LBS-Route".
Example: example_cookieNotes:*  Ensure that the cookie name used at the backend application servers is different from the cookie name used   at the load balancer. To minimize the chance of name collision, Oracle recommends that you use a prefix   such as "X-Oracle-OCI-" for this field.*  If a backend server and the load balancer both insert cookies with the same name, the client or browser   behavior can vary depending on the domain and path values associated with the cookie. If the name, domain,   and path values of the Set-cookie generated by a backend server and the Set-cookie generated by the   load balancer are all the same, the client or browser treats them as one cookie and returns only one of   the cookie values in subsequent requests. If both Set-cookie names are the same, but the domain and path   names are different, the client or browser treats them as two different cookies.
 | 
    
  
  
  DisableFallback
  
  
  Declaration
  
    [JsonProperty(PropertyName = "disableFallback")]
public bool? DisableFallback { get; set; }
   
  Property Value
  
    
      
        | Type | Description | 
    
    
      
        | bool? | Whether the load balancer is prevented from directing traffic from a persistent session client to
a different backend server if the original server is unavailable. Defaults to false.
Example: false
 | 
    
  
  
  Domain
  
  
  Declaration
  
    [JsonProperty(PropertyName = "domain")]
public string Domain { get; set; }
   
  Property Value
  
    
      
        | Type | Description | 
    
    
      
        | string | The domain in which the cookie is valid. The Set-cookieheader inserted by the load balancer contains a
domain attribute with the specified value.This attribute has no default value. If you do not specify a value, the load balancer does not insert the domain
attribute into the
 Set-cookieheader.Notes:
 
 
RFC 6265 - HTTP State Management Mechanism describes client and
browser behavior when the domain attribute is present or not present in the Set-cookieheader.If the value of the
 Domainattribute isexample.comin theSet-cookieheader, the client includes
the same cookie in theCookieheader when making HTTP requests toexample.com,www.example.com, andwww.abc.example.com. If theDomainattribute is not present, the client returns the cookie only for
the domain to which the original request was made.
Ensure that this attribute specifies the correct domain value. If the Domainattribute in theSet-cookieheader does not include the domain to which the original request was made, the client or browser might reject
the cookie. As specified in RFC 6265, the client accepts a cookie with theDomainattribute valueexample.comorwww.example.comsent fromwww.example.com. It does not accept a cookie with theDomainattributeabc.example.comorwww.abc.example.comsent fromwww.example.com.Example: example.com
 | 
    
  
  
  IsHttpOnly
  
  
  Declaration
  
    [JsonProperty(PropertyName = "isHttpOnly")]
public bool? IsHttpOnly { get; set; }
   
  Property Value
  
    
      
        | Type | Description | 
    
    
      
        | bool? | Whether the Set-cookieheader should contain theHttpOnlyattribute. Iftrue, theSet-cookieheader
inserted by the load balancer contains theHttpOnlyattribute, which limits the scope of the cookie to HTTP
requests. This attribute directs the client or browser to omit the cookie when providing access to cookies
through non-HTTP APIs. For example, it restricts the cookie from JavaScript channels.Example: true
 | 
    
  
  
  IsSecure
  
  
  Declaration
  
    [JsonProperty(PropertyName = "isSecure")]
public bool? IsSecure { get; set; }
   
  Property Value
  
    
      
        | Type | Description | 
    
    
      
        | bool? | Whether the Set-cookieheader should contain theSecureattribute. Iftrue, theSet-cookieheader
inserted by the load balancer contains theSecureattribute, which directs the client or browser to send the
cookie only using a secure protocol.Note: If you set this field to
 true, you cannot associate the corresponding backend set with an HTTP
listener.Example: true
 | 
    
  
  
  MaxAgeInSeconds
  
  
  Declaration
  
    [JsonProperty(PropertyName = "maxAgeInSeconds")]
public int? MaxAgeInSeconds { get; set; }
   
  Property Value
  
    
      
        | Type | Description | 
    
    
      
        | int? | The amount of time the cookie remains valid. The Set-cookieheader inserted by the load balancer contains
aMax-Ageattribute with the specified value.The specified value must be at least one second. There is no default value for this attribute. If you do not
specify a value, the load balancer does not include the
 Max-Ageattribute in theSet-cookieheader. In
most cases, the client or browser retains the cookie until the current session ends, as defined by the client.Example: 3600
 | 
    
  
  
  Path
  
  
  Declaration
  
    [JsonProperty(PropertyName = "path")]
public string Path { get; set; }
   
  Property Value
  
    
      
        | Type | Description | 
    
    
      
        | string | The path in which the cookie is valid. The Set-cookie headerinserted by the load balancer contains aPathattribute with the specified value.Clients include the cookie in an HTTP request only if the path portion of the request-uri matches, or is a
subdirectory of, the cookie's
 Pathattribute.The default value is
 /.Example: /example
 |