set non expiring cookie php code example
Example 1: infinite cookie good php ?
setcookie("CookieName", "CookieValue", 2147483647);
Example 2: php cookie never expire
//20 year long cookie
setcookie(
"CookieName",
"CookieValue",
time() + (20 * 365 * 24 * 60 * 60)
);