//
setcookie(name, value, expire, path, domain, secure)
setcookie(name, value, expire, path, domain, secure)

Returns true for success, false for failure.
name and value are required, other parameters are optional.
- expire cookie expiration time. time() + 3600 * 24 * 30 will set the cookie to expire in 30 days. Defaults to expiring when the browser is closed.
- secure whether to transmit over HTTPS connections. Defaults to false.
setcookie() will automatically encode the cookie (automatically decode when receiving). To write the cookie as-is, use setrawcookie.
setcookie("cookieName", "cookieValue", time() + 3600 * 24);