Answers for "php function to set cookie"

PHP
1

setcookie php

setcookie($cookiename, $cookievalue, time() + (86400 * 30), "/"); // 86400 = 1 day
Posted by: Guest on August-18-2020
0

withcookie function in php

//setcookie(name, value, expire, path, domain, security);
//understand first line and then implement the second one
setcookie($name, $value, 5, "/");
Posted by: Guest on August-16-2021

Browse Popular Code Answers by Language