addCookie

addCookie(cookieName:  String;
          cookieValue: String;
          cookieLife:  Decimal;
          cookiePath:  String);

The addCookie method of the JadeHTMLClass class adds cookie information on the client node for the HTML page when the HTML string is generated.

The parameters for the addCookie method are listed in the following table.

Parameter Description
cookieName Name of the cookie.
cookieValue Value of the cookie. If this is null (""), the deleteCookie function is generated; otherwise the setCookie function is generated.
cookieLife Number of minutes that represents the lifetime of the cookie.
cookiePath Path of the cookie.

The code fragment in the following example shows the use of the addCookie method.

addCookie("userName", "Wilbur", 120, "");