Set Cookie Value

The Set Cookie Value server behavior sets the value of a cookie equal to a specified value or value retrieved from a data binding when a specified trigger occurs. You have the option of specifying the number of days that the cookie value is to be retained for.

To apply the Set Cookie Value server behavior:

  1. Click the Plus (+) button in the Server Behaviors panel and choose WebAssist > Cookies > Set Cookie Value.
  2. From the "Trigger" list, select the event that will initiate the process of setting the value of a cookie. Options include:
    • any form post
    • before page load
    • current page submit
    • checking the existence of a trigger value chosen from available data bindings.
  3. Select the Cookie name whose value is to be set, or enter the name of a new cookie to be defined for the site.
  4. Set the number of days that the cookie value is to be retained for.
  5. Specify the value that is to be set in the cookie, or click the data bindings icon to retrieve the value from a specified source.
  6. Click OK to apply the server behavior.