SetCookie Php
setcookie($cookiename, $cookievalue, time() + (86400 * 30), "/"); // 86400 = 1 day
Silly Sloth
setcookie($cookiename, $cookievalue, time() + (86400 * 30), "/"); // 86400 = 1 day
setcookie("cookie_name", "type_on_cookie", expiry_time(), "/");
//setcookie(name, value, expire, path, domain, security);
//understand first line and then implement the second one
setcookie($name, $value, 5, "/");
setcookie(
string $name,
string $value = "",
int $expires_or_options = 0,
string $path = "",
string $domain = "",
bool $secure = false,
bool $httponly = false
): bool