## Cookie Parameter

Cookie parameters are used to hold the values for composing service responses. The values for a cookie parameter can be assigned from the cookie coming in the request.

### Parameter Details

- Cookie Name : Cookie name for which the parameter is defined. It is optional. If not passed, then cookie name is same as cookie parameter name. More than one parameter can be defined for one cookie. This will be meaning if we need to apply different save offset, transformation etc to get different values in different parameters.
- Parameter Name : Name of parameter to be associated with a cookie. This name must be unique among all parameters in the service. Example: "JSessionIdVar".

### Additional Settings

- Start offset : This is required if only part of the delimited value needs to be assigned to the parameter. The offset value must be non-negative. Only numbers are allowed and there is no limit. It defines the starting position of the portion which needs to be extracted means from where value of variable is started.
- Maximum length : Maximum length of the cookie value to be saved. A default value for the variable is 0.If the value is 0, then save complete cookie value.
- Decode Cookie value To decode when cookie value is extracted from the HTTP request. Decoding is done for URL style encoded value of the cookie. Value is not case sensitive.
  - Decode : value is decoded before saving in the parameter.
  - Do not decode :not decoded.
  Example : %3D decode into =.
- Transform Specifies any built-in transforms which need to be applied to the cookie value before it is assigned to the parameter. This is done after Decode if decoding is to be done.
  - Reverse: string fetched from request will be reversed in the response file.
  - None : no transformation is done.
- Encode To encode cookie parameter if used in the response template.
  - None: No need to encode value in response template.
  - ALL: Encode all character of value in response template.
  - Specified: Encode only specified characters of value.
- Action on not found The action to be taken if cookie name is not found in the HTTP request. if user use "Log Message", then message is logged in error log.
- Default value Default value of cookie parameter if cookie is not found in the request. It can be empty.