//setcookie(name, value, expire, path, domain, security); //understand first line and then implement the second one setcookie($name, $value, 5, "/");