never expiring cookie in php code example
Example: php cookie never expire
//20 year long cookie
setcookie(
"CookieName",
"CookieValue",
time() + (20 * 365 * 24 * 60 * 60)
);
//20 year long cookie
setcookie(
"CookieName",
"CookieValue",
time() + (20 * 365 * 24 * 60 * 60)
);