Request Cookies

Cookies are created and used by the Web service and are stored on your computer for a specified period of time. This property box lets you configure HTTP Web Request and HTTP Form Post activities to use cookies produced in previous HTTP Web Request or HTTP Form Post activities. Workflow will include any cookies specified here in the request to the server.

Example: You have two HTTP Web Request activities which log into the same website as two different users, Bob and Marie. When each activity logs in, it gets a cookie to show that it has logged in as that user. These two HTTP Web Request activities should be set to create a new cookie container, so that they use different sessions. If you want an HTTP Web Request or HTTP Form Post activity wants to act as Bob, use this property box to select the HTTP Web Request activity that logged in as Bob. If you want the activity to act as Marie, use this property box to select the HTTP Web Request activity that logged in as Marie.

Choose one of the following configurations for how this activity will retrieve and store cookies.

Note: The cookie containers created by the HTTP Web Request and HTTP Form Post activities can hold up to 500 cookies at the same time, per domain.

To configure cookies

  1. Add the HTTP Web Request or HTTP Form Post activity to your workflow definition by dragging it from the Toolbox Pane and dropping it in the Designer Pane.
  2. Select the activity.
  3. Click the Advanced button at the top of the Properties Pane.
  4. In the ClosedCookies property box, click the Select link.
  5. In the ClosedUse Cookies from Previous Activity dialog box, select Workflow Cookies to continue the existing session or to use cookies from a different session select Request Cookies under the HTTP Web Request or HTTP Form Post activity that you started a new session from.
  6. Note: You can only select cookies from HTTP Web Request or HTTP Form Post activities that appear above the activity you are currently configuring in the Designer Pane.

  7. Click OK.