I'm reviewing the code of my framework which deletes cookie on client and here is the piece of code where it does it:
return setcookie($name, NULL, -86400, Cookie::$path, Cookie::$domain, Cookie::$secure, Cookie::$httponly);
I'm particularly interested in why the number is -86400
seconds? Is it just random number or it has any special meaning in some convention? I can expire cookie with -1
, can't I?