Cookie

The optional Cookie component for provides the value of a browser 'cookie' in the current context. It is meant for technically savvy webmasters that want to manipulate the cookies directly.

A cookie is a persistent value that is maintained by the browser until next time a visitor return to your site. The cookie value is set as the visitor retrieve a page as part of the HTTP header or META tags in the HEAD element of a document. The cookie entity type provide makes it convenient to later use this value.

To assign a value a cookie named for example "user", you can add the following META tag to the HEAD element of an HTML page:

<META HTTP-EQUIV="Set-Cookie" Content="user=Terje;">

Setting a cookie to the value of an entity reference provide a (low-level) way to maintain values between visits:

<META HTTP-EQUIV="Set-Cookie" Content="user=&nickname;;">

The Cookie component provide a new item on the list of entity types of the Entities dialog. To embed the cookie above in a page, create a new cookie entity and type in "user" as the cookie of the entity. This allows you to use the corresponding entity reference where you want to embed the cookie.

Note: The cookie entity do not have a value before at first at the request after a cookie has been set.

Installing the Entity Type Component

  1. The entity type is distributed as a plug-in file. Download the file, then unstuff the file using Stuffit Expander (the browser will probably do this for you).
  2. Put the file in the Components folder of Interaction. Restart the application to activate the component.
  3. Open the Entities dialog from the File menu. Click the New button to create an entity. Select the new entity type from the pop-up menu, and complete the dialog. Repeat at any time to create an unlimited number of Cookie.

Other entity types

Note:The Cookies Entity Type is currently only available for PPC.


This site is enhanced with Interaction.