decorative banner

WriteCookie


    The WriteCookie action allows you to store the value of a variable temporarily on the viewer's hard disk. This function enables you to make viewer-customizable pages, because it allows the viewer to change the properties of the browser window and reload their own personalized version of the page later on.

    Trigger the action with a browser-triggered event set to OnLoad in the head section of the page. Choose Action > Special > WriteCookie. Enter a name for the cookie in the Name text box. This name will be used when the Write Cookie action sets the cookie at runtime. In the Expires After text box, enter an expiration date (in hours) to determine how long the cookie will last after it has been set. Set optional attributes:

    • Path lets you specify the subset of URLs in a domain for which the cookie is valid. If a cookie has already passed domain matching, then the path name component of the URL is compared with the path attribute, and if there is a match, the cookie is considered valid and is sent along with the URL request.
    • Domain lets you specify a valid Internet domain name. When searching the cookie list for valid cookies, the attribute you specify here for the current cookie is compared with the Internet domain name of the host from which the URL will be fetched. If the tails of both domain names match, then the cookie will go through path matching to see if it should be sent.
    • Secure lets you ensure that the cookie will be transmitted only if the communications channel with the host is a secure one. If secure is not specified, a cookie is considered safe to be sent in the clear over unsecured channels.