setcookie php
setcookie($cookiename, $cookievalue, time() + (86400 * 30), "/"); // 86400 = 1 day
Silly Sloth
setcookie($cookiename, $cookievalue, time() + (86400 * 30), "/"); // 86400 = 1 day
//setcookie(name, value, expire, path, domain, security);
//understand first line and then implement the second one
setcookie($name, $value, 5, "/");