Expire cookie at midnight

date_default_timezone_set('America/Denver');
setcookie('midnight_expire_cookie','expire-me',strtotime('today 23:59'),'/');

0 Comments

You must be logged in to post a comment.