NOP Design Home Page
Documentation
TOC/Index
Search
Downloads



SetCookie

Set's a cookie in the client's browser

Set's a cookie in the client browser, conforming to the Netscape Cookie specification.

If you do not specify a domain, the current domain will be used. If you do not specify a path, the current path will be used. If you do not specify an expiration, the cookie will expire when the user closes their browser.

Expiration dates should be formatted as:
Wdy, DD-Mon-YYYY HH:MM:SS GMT
For example: Tue, 08-Nov-99 23:12:40 GMT

Sample Source

SetCookie "MyCookie" To "MyValue"
SetCookie "MyCookie" To "MyValue" With "Domain"
SetCookie "MyCookie" To "MyValue" With "Domain", "Path"
SetCookie "MyCookie" To "MyValue" With "Domain", "Path", "Expiration"

Related Function(s):
   Cookie; Parameter;

Minimum version: 4.4