Build HTTP Cookies in the Configuration File

The main goal of cookies is to keep a state, through session variables, between two runs of an application by the same user. The number of cookies associated with an application should be constant.

You declare cookies for an application within the configuration file.

Examples of cookie declarations

<!-- non persistant cookies -->
<HTTP_COOKIES>
  <HTTP_COOKIE Id="cookie1">
    <VARIABLE Id="var1" />
    <VARIABLE Id="var2" />
    <VARIABLE Id="var3" />
    <VARIABLE Id="var4" />
  </HTTP_COOKIE>
</HTTP_COOKIES>
<!-- persistent cookie that applies only to this application -->
<HTTP_COOKIES>
  <HTTP_COOKIE Id="cookie2" Expires="Wdy, DD-Mon-YYYY HH:MM:SS GMT"
    Domain="www.domain.com">
    <VARIABLE Id="var5" />
    <VARIABLE Id="var6" />
  </HTTP_COOKIE>
</HTTP_COOKIES>
<!-- examples of cookies with relative expiration dates -->
<HTTP_COOKIES>
  <HTTP_COOKIE Id="a-fixed-24h-cookie" Expires="86400">
    <VARIABLE Id="var3">initial value</VARIABLE>
  </HTTP_COOKIE>
  <HTTP_COOKIE Id="a-20min-slide-cookie" Expires="+1200">
    <VARIABLE Id="var4">initial value</VARIABLE>
  </HTTP_COOKIE>
</HTTP_COOKIES>
Note:
  1. All cookies and all associated session variables will be shared between all applications.
  2. For details on cookies configuration see the Configuration Reference.