Method Html3():setCookie() Professional

Set a cookie.

Syntax
:setCookie( <cName>        , ;
            [<cValue>]     , ;
            [<dExpiryDate>], ;
            [<cPath>]      , ;
            [<cDomain>] )  --> cSetCookie
Parameters
<cName>
<cName> is the symbolic name of the cookie.
<cValue>
<cValue> is an optional string that represents a value associated with a cookie.
<dExpiryDate>
The optional parameter <dExpiryDate> is the date when the cookie expires.
<cPath>
The optional parameter <cPath> is the path of the cookie.
<cDomain>
The optional parameter <cDomain> is the domain of the cookie.
Return

The method returns the string that will be sent to the client, or Web browser.

Description

The method adds information to a HTML page required to set a cookie on the client side when the HTML page is returned from the package DLL (Server side) to the client.

A cookie remains on the client side until the expiry date is reached. After that date, the cookie is deleted by a Web browser. Once a cookie is set, it can be voided from the server side by setting the cookie again with an expiry date of yesterday.

Feedback

If you see anything in the documentation that is not correct, does not match your experience with the particular feature or requires further clarification, please use this form to report a documentation issue.