php write cookie code example
Example 1: setcookie php
setcookie($cookiename, $cookievalue, time() + (86400 * 30), "/"); // 86400 = 1 day
Example 2: cookies php syntax
setcookie("cookie_name", "type_on_cookie", expiry_time(), "/");
setcookie($cookiename, $cookievalue, time() + (86400 * 30), "/"); // 86400 = 1 day
setcookie("cookie_name", "type_on_cookie", expiry_time(), "/");