KNOWLEDGE BASE
Log In    |    Knowledge Base    |    4D Home
Tech Tip: Setting multiple cookies
PRODUCT: 4D | VERSION: 6.7.1 | PLATFORM: Mac & Win
Published On: December 14, 2001
Your current browser may not allow you to download the asset. We recommend Mozilla Firefox or Google Chrome.
Log In

Using the command SET HTTP HEADER, it is possible to set an HTTP cookie.
However, it is only possible to set one cookie at a time. You may find an
occasion where you need to set two or more cookies simultaneously. To
achieve this, you will need to use some JavaScript. As an example:

<SCRIPT LANGUAGE="JavaScript">
<!--
document.cookie = '<!--#4DVAR myCookie-->';
}
// -->

For more information on using 4D & JavaScript, please see the tech note:

https://www.4d.com/support/tips01-711.html