Skip to main content

Cookies

Description

Specifies the configuration information associated with the processing of cookies from the resource server.

Properties

The following table(s) describe the configuration properties for this component:

Name Type Constraints Description
junction_cookie JUNCTION_COOKIE Object

The reverse proxy can set a "junction cookie" in returned HTML pages indicating which junction the page was served from. This is useful for resource servers which dynamically generate URLs that may not be aware or capable of generating URLs containing the path which the reverse proxy served them from.

Name Type Constraints Description
position string Values: inhead,trailer Controls the position in which the <script> block will be inserted.
version string Values: onfocus,xhtml10 Controls how the cookie is set.
ensure_unique boolean Values: true,false
Default:false
A boolean flag indicating whether or not to insert the resource server path or host to ensure that the cookie is unique.
preserve_name boolean Values: true,false
Default:false
A boolean flag indicating whether or not to preserve the original cookie name. When set to false, non-domain cookies are renamed AMWEBJCT!<path>.

Example

 resource_servers:
         - path: "/example"
           ...
           cookies:
               junction_cookie:
                   position: inhead
                   version: onfocus
                   ensure_unique: true
                   preserve_name: true