Per http://php.net/manual/en/function.setcookie.php, they provide the following example to delete a cookie:
setcookie ("TestCookie", "", time() - 3600);
Selected answer to Remove a cookie recommends the following:
setcookie('Hello', null, -1, '/');
Should it be time()-3600
, -1
, or something else?
On a side note, is a value of null
or ""
preferred?