The set_cookie tag can be used to set a cookie with a name and value. An expiration time can also be set for the cookie.
<cms:set_cookie 'my_test_cookie' 'hello world' />
<cms:set_cookie name='my_test_cookie' value='hello world' />
The name of the cookie.
The value of the cookie. This value is stored on the clients computer.
The time in seconds for the cookie to expire. If set to 0, or omitted, the cookie will expire at the end of the session (when the browser closes).
<cms:set_cookie 'my_test_cookie' value='hello world' expire='86400' />
The code above will set the expiration time of the cookie to 1 day (24 * 60 * 60)
It is a self closing tag and sets no variables of its own.