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:
- Click the Plus (+) button in the Server Behaviors panel and choose WebAssist > Cookies > Set Cookie Value.
- 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.
- Select the Cookie name whose value is to be set, or enter the name of a new cookie to be defined for the site.
- Set the number of days that the cookie value is to be retained for.
- 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.
- Click OK to apply the server behavior.
|