Adding a Save Cookie event action

Use the Save Cookie event action to store the required data values under specific keys in the application storage for the current user.

About this task

In this event action, a user is an operating system user who works with the application or a user who runs the application in a web browser. Each user has a particular storage to keep the created key values. So the key values created by different users do not overwrite each other, even if the keys have the same name.

To add a Save Cookie event action to an object, perform the following steps:

Procedure

  1. From the Events view, select the object in the editor window and double-click the event that you want to trigger.
    The [objectname] Behavior window opens.
  2. Click the Add New Action icon.
    The Add New Action window opens.
  3. Select Save Cookie in the actions tree and click Next to open the Save Cookie action parameters window.
    Note: To quickly find the required event action, type the name of the action in the filter text field.
  4. Specify the name of the key in the Key field.
  5. Specify the value of the key in the Value field.
  6. Click Finish to close the Save Cookie action parameters window and return to the [objectname] Behavior window.
  7. Click Apply to apply all actions that have been added for the event.
  8. Click OK to close the [objectname] Behavior window.

Results

The value of the key is stored in the application storage for the current user and can be retrieved by the name of the key any time.